#trades occasionally fails with "EOFError: end of file reached " #1

Closed
YenTheFirst opened this Issue Jun 9, 2011 · 1 comment

Projects

None yet

2 participants

@YenTheFirst
Contributor

EOFError: end of file reached
from ~/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/openssl/buffering.rb:145:in sysread_nonblock' from ~/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/openssl/buffering.rb:145:inread_nonblock'
from ~/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/net/protocol.rb:135:in rbuf_fill' from ~/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/net/protocol.rb:86:inread'
from ~/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/net/http.rb:2448:in ensure in read_chunked' from ~/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/net/http.rb:2448:inread_chunked'
from ~/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/net/http.rb:2419:in read_body_0' from ~/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/net/http.rb:2379:inread_body'
from ~/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/net/http.rb:905:in block in get' from ~/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/net/http.rb:1194:inblock in transport_request'
from ~/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/net/http.rb:2342:in reading_body' from ~/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/net/http.rb:1193:intransport_request'
from ~/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/net/http.rb:1177:in request' from ~/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/net/http.rb:1170:inblock in request'
from ~/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/net/http.rb:627:in start' from ~/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/net/http.rb:1168:inrequest'
... 1 levels...
from ~/.rvm/gems/ruby-1.9.2-p180@global/gems/faraday-0.6.1/lib/faraday/adapter/net_http.rb:49:in call' from ~/.rvm/gems/ruby-1.9.2-p180@global/gems/faraday-0.6.1/lib/faraday/response.rb:8:incall'
from ~/.rvm/gems/ruby-1.9.2-p180@global/gems/faraday-0.6.1/lib/faraday/response.rb:8:in call' from ~/.rvm/gems/ruby-1.9.2-p180@global/gems/faraday-0.6.1/lib/faraday/response.rb:8:incall'
from ~/.rvm/gems/ruby-1.9.2-p180@global/gems/faraday-0.6.1/lib/faraday/request/url_encoded.rb:14:in call' from ~/.rvm/gems/ruby-1.9.2-p180@global/gems/faraday-0.6.1/lib/faraday/request.rb:88:inrun'
from ~/.rvm/gems/ruby-1.9.2-p180@global/gems/faraday-0.6.1/lib/faraday/request.rb:28:in run' from ~/.rvm/gems/ruby-1.9.2-p180@global/gems/faraday-0.6.1/lib/faraday/connection.rb:170:inrun_request'
from ~/.rvm/gems/ruby-1.9.2-p180@global/gems/faraday-0.6.1/lib/faraday/connection.rb:64:in get' from ~/.rvm/gems/ruby-1.9.2-p180@global/gems/mtgox-0.0.1/lib/mtgox/request.rb:10:inrequest'
from ~/.rvm/gems/ruby-1.9.2-p180@global/gems/mtgox-0.0.1/lib/mtgox/request.rb:4:in get' from ~/.rvm/gems/ruby-1.9.2-p180@global/gems/mtgox-0.0.1/lib/mtgox/client.rb:42:intrades'
from ~/.rvm/gems/ruby-1.9.2-p180@global/gems/mtgox-0.0.1/lib/mtgox.rb:14:in method_missing' from bc.rb:157:intrade_graphs'
from (irb):571
from ~/.rvm/rubies/ruby-1.9.2-p180/bin/irb:16:in `

'

@sferik
Owner
sferik commented Jun 9, 2011

Looks like a Net::HTTP error handling a chunked response. I'll write code to make the adapter configurable so you can try using one of the other adapters supported by Faraday.

@sferik sferik closed this May 6, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment