Open-URI issue #3

Closed
danishkhan opened this Issue Jun 7, 2011 · 16 comments

Comments

Projects
None yet
8 participants

When I run task-web I get this error

/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/open-uri.rb:277:in `open_http': 500 Internal Server Error (OpenURI::HTTPError)
from /Users/danishkhan/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/open-uri.rb:616:in `buffer_open'
from /Users/danishkhan/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/open-uri.rb:164:in `open_loop'
from /Users/danishkhan/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/open-uri.rb:162:in `catch'
from /Users/danishkhan/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/open-uri.rb:162:in `open_loop'
from /Users/danishkhan/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/open-uri.rb:132:in `open_uri'
from /Users/danishkhan/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/open-uri.rb:518:in `open'
from /Users/danishkhan/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/open-uri.rb:30:in `open'
from /Users/danishkhan/.rvm/gems/ree-1.8.7-2011.03/gems/vegas-0.1.8/lib/vegas/runner.rb:142:in `port_open?'
from /Users/danishkhan/.rvm/gems/ree-1.8.7-2011.03/gems/vegas-0.1.8/lib/vegas/runner.rb:159:in `check_for_running'
from /Users/danishkhan/.rvm/gems/ree-1.8.7-2011.03/gems/vegas-0.1.8/lib/vegas/runner.rb:104:in `start'
from /Users/danishkhan/.rvm/gems/ree-1.8.7-2011.03/gems/vegas-0.1.8/lib/vegas/runner.rb:77:in `initialize'
from /Users/danishkhan/.rvm/gems/ree-1.8.7-2011.03/gems/taskwarrior-web-0.0.5/bin/task-web:9:in `new'
from /Users/danishkhan/.rvm/gems/ree-1.8.7-2011.03/gems/taskwarrior-web-0.0.5/bin/task-web:9
from /Users/danishkhan/.rvm/gems/ree-1.8.7-2011.03/bin/task-web:19:in `load'
from /Users/danishkhan/.rvm/gems/ree-1.8.7-2011.03/bin/task-web:19
Owner

theunraveler commented Jun 7, 2011

task-web is pretty much untested on both ree and standard ruby-1.8.. Can you try running it with ruby-1.9.?

Same error with ruby-1.9.2p180. Could it be an issue with RVM?

   /.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/open-uri.rb:346:in `open_http': 500 Internal Server Error     (OpenURI::HTTPError)
from /Users/danishkhan/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/open-uri.rb:769:in `buffer_open'
from /Users/danishkhan/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/open-uri.rb:203:in `block in open_loop'
from /Users/danishkhan/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/open-uri.rb:201:in `catch'
from /Users/danishkhan/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/open-uri.rb:201:in `open_loop'
from /Users/danishkhan/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/open-uri.rb:146:in `open_uri'
from /Users/danishkhan/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/open-uri.rb:671:in `open'
from /Users/danishkhan/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/open-uri.rb:33:in `open'
from /Users/danishkhan/.rvm/gems/ruby-1.9.2-p180/gems/vegas-0.1.8/lib/vegas/runner.rb:142:in `port_open?'
from /Users/danishkhan/.rvm/gems/ruby-1.9.2-p180/gems/vegas-0.1.8/lib/vegas/runner.rb:159:in `check_for_running'
from /Users/danishkhan/.rvm/gems/ruby-1.9.2-p180/gems/vegas-0.1.8/lib/vegas/runner.rb:104:in `start'
from /Users/danishkhan/.rvm/gems/ruby-1.9.2-p180/gems/vegas-0.1.8/lib/vegas/runner.rb:77:in `initialize'
from /Users/danishkhan/.rvm/gems/ruby-1.9.2-p180/gems/taskwarrior-web-0.0.5/bin/task-web:9:in `new'
from /Users/danishkhan/.rvm/gems/ruby-1.9.2-p180/gems/taskwarrior-web-0.0.5/bin/task-web:9:in `<top (required)>'
from /Users/danishkhan/.rvm/gems/ruby-1.9.2-p180/bin/task-web:19:in `load'
from /Users/danishkhan/.rvm/gems/ruby-1.9.2-p180/bin/task-web:19:in `<main>'
Owner

theunraveler commented Jun 8, 2011

Hmm. I'm using RVM as well and it works just fine.

It looks like the issue is actually with the vegas gem. By default, it uses port 5678. Do you currently have anything running on that port? I'm not sure what will happen if that port is taken...

Tried a different port as well and that didn't solve the issue.

Owner

theunraveler commented Jun 8, 2011

OK. What OS are you on?

Mac OS X Version 10.6.7

I'll try to do some research to see if I can find what the issue might be. I was just curious if you might have run into the issue before yourself.

Owner

theunraveler commented Jun 8, 2011

I'm on mac also. Is there anything funny in your /etc/hosts file, or are you running your own DNS server or anything?

Nope, I don't believe I am, but I'll look into seeing if there is anything funky in my etc/hosts file.

I'll try testing it out on another MBP that I have and see if I get the same issue.

I seem to have the same problem. Mac OS 10.6.7, RVM, Ruby 1.9.2-p180

I'm experiencing the same issue on 1.9.2-p290 and 1.9.3 with Resque-web which uses the vegas gem.

Zenithar commented Oct 8, 2012

Try to use the -x flag to ignore proxy settings.

@theunraveler theunraveler reopened this Nov 6, 2012

Owner

theunraveler commented Nov 6, 2012

Is this still happening for folks?

mmai commented Mar 9, 2013

I have the same problem on ubuntu 12.04 :

 task-web -x
[2013-03-09 12:14:49 +0100] Starting 'taskwarrior-web'...
/
/usr/lib/ruby/1.9.1/open-uri.rb:347:in `open_http': 500 Internal Server Error  (OpenURI::HTTPError)
    from /usr/lib/ruby/1.9.1/open-uri.rb:776:in `buffer_open'
    from /usr/lib/ruby/1.9.1/open-uri.rb:203:in `block in open_loop'
    from /usr/lib/ruby/1.9.1/open-uri.rb:201:in `catch'
    from /usr/lib/ruby/1.9.1/open-uri.rb:201:in `open_loop'
    from /usr/lib/ruby/1.9.1/open-uri.rb:146:in `open_uri'
    from /usr/lib/ruby/1.9.1/open-uri.rb:678:in `open'
    from /usr/lib/ruby/1.9.1/open-uri.rb:33:in `open'
    from /var/lib/gems/1.9.1/gems/vegas-0.1.11/lib/vegas/runner.rb:146:in `port_open?'
    from /var/lib/gems/1.9.1/gems/vegas-0.1.11/lib/vegas/runner.rb:160:in `check_for_running'
    from /var/lib/gems/1.9.1/gems/vegas-0.1.11/lib/vegas/runner.rb:108:in `start'
    from /var/lib/gems/1.9.1/gems/vegas-0.1.11/lib/vegas/runner.rb:77:in `initialize'
    from /var/lib/gems/1.9.1/gems/taskwarrior-web-1.1.8/bin/task-web:9:in `new'
    from /var/lib/gems/1.9.1/gems/taskwarrior-web-1.1.8/bin/task-web:9:in `<top (required)>'
    from /usr/local/bin/task-web:19:in `load'
    from /usr/local/bin/task-web:19:in `<main>'

FWIW I was having this issue as well. Running with sudo seems to have fixed the issue for me.

adals commented Nov 12, 2017

i have same issue

[2017-11-12 10:46:27 +0100] Starting 'taskwarrior-web'... /usr/local/Cellar/ruby/2.4.2_1/lib/ruby/2.4.0/open-uri.rb:363:inopen_http': 500 Internal Server Error (OpenURI::HTTPError)
from /usr/local/Cellar/ruby/2.4.2_1/lib/ruby/2.4.0/open-uri.rb:741:in buffer_open' from /usr/local/Cellar/ruby/2.4.2_1/lib/ruby/2.4.0/open-uri.rb:212:inblock in open_loop'
from /usr/local/Cellar/ruby/2.4.2_1/lib/ruby/2.4.0/open-uri.rb:210:in catch' from /usr/local/Cellar/ruby/2.4.2_1/lib/ruby/2.4.0/open-uri.rb:210:inopen_loop'
from /usr/local/Cellar/ruby/2.4.2_1/lib/ruby/2.4.0/open-uri.rb:151:in open_uri' from /usr/local/Cellar/ruby/2.4.2_1/lib/ruby/2.4.0/open-uri.rb:721:inopen'
from /usr/local/Cellar/ruby/2.4.2_1/lib/ruby/2.4.0/open-uri.rb:35:in open' from /usr/local/lib/ruby/gems/2.4.0/gems/vegas-0.1.11/lib/vegas/runner.rb:146:inport_open?'
from /usr/local/lib/ruby/gems/2.4.0/gems/vegas-0.1.11/lib/vegas/runner.rb:160:in check_for_running' from /usr/local/lib/ruby/gems/2.4.0/gems/vegas-0.1.11/lib/vegas/runner.rb:108:instart'
from /usr/local/lib/ruby/gems/2.4.0/gems/vegas-0.1.11/lib/vegas/runner.rb:77:in initialize' from /usr/local/lib/ruby/gems/2.4.0/gems/taskwarrior-web-1.1.12/bin/task-web:9:innew'
from /usr/local/lib/ruby/gems/2.4.0/gems/taskwarrior-web-1.1.12/bin/task-web:9:in <top (required)>' from /usr/local/bin/task-web:23:inload'
from /usr/local/bin/task-web:23:in <main>'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment