Skip to content

Some scale down requests trigger a Rack::Timeout #102

@yjukaku

Description

@yjukaku

I'm consistently getting a Rack::Timeout exception every few days with a backtrace that starts at the heroku.rb in this gem. Obviously I don't expect that requests never timeout, but it's happening pretty often strangely enough. The fact that the request is taking a long time isn't really an issue for me anyways - the issue is that the request to the API doesn't have any timeout set, so it can take up to 15-20 seconds, which then triggers the request time limit I've set.

Is there any settings we can change, maybe in the platform api client setup, to prevent this timeout from being hit?

/gems/excon-0.31.0/lib/excon/socket.rb:47 in select
/gems/excon-0.31.0/lib/excon/socket.rb:47 in rescue in read
/gems/excon-0.31.0/lib/excon/socket.rb:35 in read
/gems/excon-0.31.0/lib/excon/socket.rb:92 in readline
/gems/excon-0.31.0/lib/excon/response.rb:34 in parse
/gems/excon-0.31.0/lib/excon/middlewares/response_parser.rb:6 in response_call
/gems/excon-0.31.0/lib/excon/connection.rb:398 in response
/gems/excon-0.31.0/lib/excon/connection.rb:268 in request
/gems/heroics-0.0.23/lib/heroics/link.rb:111 in request_with_cache
/gems/heroics-0.0.23/lib/heroics/link.rb:66 in run
/gems/heroics-0.0.23/lib/heroics/resource.rb:28 in method_missing
/gems/platform-api-2.1.0/lib/platform-api/client.rb:1431 in info
/gems/workless_revived-2.1.0.2/lib/workless/scalers/heroku.rb:24 in workers
/gems/workless_revived-2.1.0.2/lib/workless/scalers/heroku.rb:12 in up
/gems/workless_revived-2.1.0.2/lib/workless/middleware/workless_checker.rb:12 in call

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions