Giter VIP home page Giter VIP logo

Comments (10)

tarcieri avatar tarcieri commented on August 22, 2024

Can you post the backtrace? (at least the parts happening inside the HTTP Gem itself)

from http.

JustinAiken avatar JustinAiken commented on August 22, 2024

Oh yes, certainly.. I guess my error reports get half-assed when leaving one place to head for another :p

17:56:22 ahn.1  | EOFError: end of file reached
17:56:22 ahn.1  |   /Users/jaiken/.rvm/gems/ruby-1.9.3-p448@talkbox/bundler/gems/http-a06f7893177a/lib/http/client.rb:86:in `readpartial'
17:56:22 ahn.1  |   /Users/jaiken/.rvm/gems/ruby-1.9.3-p448@talkbox/bundler/gems/http-a06f7893177a/lib/http/client.rb:86:in `block in perform'
17:56:22 ahn.1  |   /Users/jaiken/.rvm/gems/ruby-1.9.3-p448@talkbox/bundler/gems/http-a06f7893177a/lib/http/response.rb:117:in `call'
17:56:22 ahn.1  |   /Users/jaiken/.rvm/gems/ruby-1.9.3-p448@talkbox/bundler/gems/http-a06f7893177a/lib/http/response.rb:117:in `body'
17:56:22 ahn.1  |   /Users/jaiken/projects/phrg/nitro-talkbox/lib/typhoeus_helper.rb:13:in `process_request'
17:56:22 ahn.1  |   /Users/jaiken/projects/phrg/nitro-talkbox/lib/typhoeus_helper.rb:26:in `get'
17:56:22 ahn.1  |   /Users/jaiken/projects/phrg/nitro-talkbox/lib/agent_status_bridge.rb:34:in `run_get'
17:56:22 ahn.1  |   /Users/jaiken/projects/phrg/nitro-talkbox/lib/agent_status_bridge.rb:24:in `get_maximum_calls_for_prospect_type'
17:56:22 ahn.1  |   /Users/jaiken/projects/phrg/nitro-talkbox/lib/queue_call_loop/queue_worker.rb:22:in `tick'
17:56:22 ahn.1  |   /Users/jaiken/projects/phrg/nitro-talkbox/lib/queue_call_loop/plugin.rb:27:in `run'
17:56:22 ahn.1  |   /Users/jaiken/projects/phrg/nitro-talkbox/lib/queue_call_loop/plugin.rb:19:in `block in initialize'
17:56:22 ahn.1  |   /Users/jaiken/.rvm/gems/ruby-1.9.3-p448@talkbox/gems/celluloid-0.15.2/lib/celluloid/actor.rb:416:in `block in task'
17:56:22 ahn.1  |   /Users/jaiken/.rvm/gems/ruby-1.9.3-p448@talkbox/gems/celluloid-0.15.2/lib/celluloid/tasks.rb:55:in `block in initialize'
17:56:22 ahn.1  |   /Users/jaiken/.rvm/gems/ruby-1.9.3-p448@talkbox/gems/celluloid-0.15.2/lib/celluloid/tasks/task_fiber.rb:13:in `block in create'

from http.

JustinAiken avatar JustinAiken commented on August 22, 2024

Also, here's a curl for comparison if it helps:

jaiken@firefly➜ nitro-talkbox git:(develop) ✗ curl -i "http://127.0.0.1:3000/api/v1/agent_status/maximum_calls?prospect_type=appointment"
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Vary: Accept-Encoding
X-UA-Compatible: IE=Edge
ETag: "64108005385238b566cf18d4efaa73f2"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 6b2f03df1b7a0953789b4beb8bd93412
X-Runtime: 0.059008
Connection: close
Server: thin 1.5.1 codename Straight Razor

{"maximum_calls":0}%

from http.

tarcieri avatar tarcieri commented on August 22, 2024

It's likely it simply isn't properly handling EOFError here. We've been moving to encapsulate all these things as SocketErrors, but it looks like this case was missing.

Thanks for the report. It should be easy to fix.

from http.

blambeau avatar blambeau commented on August 22, 2024

Observing the same behavior here (possibly when Content-Length is not set on response headers).

The following fix, that I use so far, seems to work: blambeau@b967bf9

Unfortunately, I'm currently unable to run the tests on my computer...

from http.

tarcieri avatar tarcieri commented on August 22, 2024

Should we merge blambeau@b967bf9 ?

from http.

sferik avatar sferik commented on August 22, 2024

@tarcieri 👍

from http.

tarcieri avatar tarcieri commented on August 22, 2024

Boom: 78036f3

Call this one good then?

from http.

sferik avatar sferik commented on August 22, 2024

@JustinAiken Please re-open if this issue continues to occur in HEAD.

from http.

tarcieri avatar tarcieri commented on August 22, 2024

@blambeau thanks!

from http.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.