Skip to content

Instantly share code, notes, and snippets.

@linuxcaffe
Created September 1, 2013 18:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save linuxcaffe/6406180 to your computer and use it in GitHub Desktop.
Save linuxcaffe/6406180 to your computer and use it in GitHub Desktop.
TWeb 401 Unauthorized errors
djp@transit:~$ task-web -L
[2013-09-01 14:04:06 -0400] Starting 'taskwarrior-web'...
[2013-09-01 14:04:06 -0400] trying port 5678...
/usr/lib/ruby/1.9.1/open-uri.rb:346:in `open_http': 401 Unauthorized (OpenURI::HTTPError)
from /usr/lib/ruby/1.9.1/open-uri.rb:775: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:677: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:132:in `find_port'
from /var/lib/gems/1.9.1/gems/vegas-0.1.11/lib/vegas/runner.rb:109: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.11/bin/task-web:9:in `new'
from /var/lib/gems/1.9.1/gems/taskwarrior-web-1.1.11/bin/task-web:9:in `<top (required)>'
from /usr/local/bin/task-web:23:in `load'
from /usr/local/bin/task-web:23:in `<main>'
@alexandre-mbm
Copy link

Perhaps it is doing a redirect. Try curb.

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