Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to handle timeout issue #36

Closed
sp88011 opened this issue Aug 22, 2013 · 1 comment
Closed

How to handle timeout issue #36

sp88011 opened this issue Aug 22, 2013 · 1 comment

Comments

@sp88011
Copy link

sp88011 commented Aug 22, 2013

I'm using twurl via the Mac Terminal and everything works fine except that I get timeout errors (for certain keywords) when accessing the search API. Is there anyway to rescue these timeout errors or set the timeout-treshold higher?

twurl -t -d track='very_rare_keyword' -H stream.twitter.com /1.1/statuses/filter.json >filename.json

yields (after roughly have a minute)

/usr/lib/ruby/1.8/timeout.rb:64:in rbuf_fill': execution expired (Timeout::Error) from /usr/lib/ruby/1.8/net/protocol.rb:134:inrbuf_fill'
from /usr/lib/ruby/1.8/net/protocol.rb:104:in read_all' from /usr/lib/ruby/1.8/net/http.rb:2228:inread_body_0'
from /usr/lib/ruby/1.8/net/http.rb:2181:in read_body' from /usr/lib/ruby/gems/1.8/gems/twurl-0.8.3/bin/../lib/twurl/request_controller.rb:14:inperform_request'
from /usr/lib/ruby/1.8/net/http.rb:1054:in request' from /usr/lib/ruby/1.8/net/http.rb:2144:inreading_body'
from /usr/lib/ruby/1.8/net/http.rb:1053:in request' from /usr/lib/ruby/1.8/net/http.rb:1037:inrequest'
from /usr/lib/ruby/1.8/net/http.rb:543:in start' from /usr/lib/ruby/1.8/net/http.rb:1035:inrequest'
from /usr/lib/ruby/gems/1.8/gems/twurl-0.8.3/bin/../lib/twurl/oauth_client.rb:80:in perform_request_from_options' from /usr/lib/ruby/gems/1.8/gems/twurl-0.8.3/bin/../lib/twurl/request_controller.rb:13:inperform_request'
from /usr/lib/ruby/gems/1.8/gems/twurl-0.8.3/bin/../lib/twurl/request_controller.rb:9:in dispatch' from /usr/lib/ruby/gems/1.8/gems/twurl-0.8.3/bin/../lib/twurl/abstract_command_controller.rb:7:indispatch'
from /usr/lib/ruby/gems/1.8/gems/twurl-0.8.3/bin/../lib/twurl/cli.rb:38:in dispatch' from /usr/lib/ruby/gems/1.8/gems/twurl-0.8.3/bin/../lib/twurl/cli.rb:21:inrun'
from /usr/lib/ruby/gems/1.8/gems/twurl-0.8.3/bin/twurl:4
from /usr/bin/twurl:19:in `load'
from /usr/bin/twurl:19

@andypiper
Copy link
Contributor

Closing for age / inability to repro - please open a new issue if this still occurs with 0.9.3

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

No branches or pull requests

2 participants