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

Request timeouts API has changed in Typhoeus #366

Closed
eaceaser opened this issue Apr 21, 2014 · 2 comments
Closed

Request timeouts API has changed in Typhoeus #366

eaceaser opened this issue Apr 21, 2014 · 2 comments

Comments

@eaceaser
Copy link

At some point in the past (Typhoeus commit 8d12b5b00b3ef595671a72a6a3acb32b417d4b6e it seems), the Request object's API was refactored to put all curl options into an options struct.

Alas, Faraday appears to still attempt to set the timeouts on the request object itself:

/home/eac/.rbenv/versions/1.9.3-p545/lib/ruby/gems/1.9.1/gems/faraday-0.9.0/lib/faraday/adapter/typhoeus.rb:104:in configure_timeout': undefined methodconnect_timeout=' for #Typhoeus::Request:0x00000001ae28c8 (NoMethodError)
from /home/eac/.rbenv/versions/1.9.3-p545/lib/ruby/gems/1.9.1/gems/faraday-0.9.0/lib/faraday/adapter/typhoeus.rb:47:in request' from /home/eac/.rbenv/versions/1.9.3-p545/lib/ruby/gems/1.9.1/gems/faraday-0.9.0/lib/faraday/adapter/typhoeus.rb:22:inperform_request'
from /home/eac/.rbenv/versions/1.9.3-p545/lib/ruby/gems/1.9.1/gems/faraday-0.9.0/lib/faraday/adapter/typhoeus.rb:14:in call' from /home/eac/.rbenv/versions/1.9.3-p545/lib/ruby/gems/1.9.1/gems/faraday-0.9.0/lib/faraday/rack_builder.rb:139:inbuild_response'
from /home/eac/.rbenv/versions/1.9.3-p545/lib/ruby/gems/1.9.1/gems/faraday-0.9.0/lib/faraday/connection.rb:377:in `run_request'

@eaceaser
Copy link
Author

fail

@agungyuliaji
Copy link

so what is the problem? i get this issue too

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

No branches or pull requests

2 participants