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

Net::HTTP::Persistent::Error #377

Closed
joermungandr opened this issue Apr 29, 2014 · 2 comments
Closed

Net::HTTP::Persistent::Error #377

joermungandr opened this issue Apr 29, 2014 · 2 comments

Comments

@joermungandr
Copy link

Does anyone know this error? I tried a dirty fix described on this blog, which works at the moment.
http://scottwb.com/blog/2013/11/09/defeating-the-infamous-mechanize-too-many-connection-resets-bug/

/home/ss338518/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/2.0.0/net/protocol.rb:158:in rescue in rbuf_fill': too many connection resets (due to Net::ReadTimeout - Net::ReadTimeout) after 2056 requests on 8487460, last used 134.225994638 seconds ago (Net::HTTP::Persistent::Error) from /home/ss338518/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/2.0.0/net/protocol.rb:152:inrbuf_fill'
from /home/ss338518/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/2.0.0/net/protocol.rb:104:in read' from /home/ss338518/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/2.0.0/net/http/response.rb:316:inensure in read_chunked'
from /home/ss338518/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/2.0.0/net/http/response.rb:316:in read_chunked' from /home/ss338518/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/2.0.0/net/http/response.rb:276:inblock in read_body_0'
from /home/ss338518/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/2.0.0/net/http/response.rb:250:in inflater' from /home/ss338518/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/2.0.0/net/http/response.rb:274:inread_body_0'
from /home/ss338518/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/2.0.0/net/http/response.rb:201:in read_body' from /home/ss338518/.rvm/gems/ruby-2.0.0-p195/gems/mechanize-2.7.3/lib/mechanize/http/agent.rb:903:inresponse_read'
from /home/ss338518/.rvm/gems/ruby-2.0.0-p195/gems/mechanize-2.7.3/lib/mechanize/http/agent.rb:262:in block in fetch' from /home/ss338518/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/2.0.0/net/http.rb:1413:inblock (2 levels) in transport_request'
from /home/ss338518/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/2.0.0/net/http/response.rb:162:in reading_body' from /home/ss338518/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/2.0.0/net/http.rb:1412:inblock in transport_request'

@developerinlondon
Copy link

it looks like a duplicate of #123 ?

theres a few options they mentioed on that thread you can try.

@leejarvis
Copy link
Member

Yeah this is a dupe, I'm afraid I don't have a good answer for you. I'm closing this to keep the discussion in that thread

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

3 participants