NatLabRockies / NatLabRockies/api-umbrella

Rack::Timeout::RequestTimeoutException

Open
#461 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Ruby
Stars
2.2k
Forks
373
PR merge metrics
No merged PRs in 30d

Description

I try to get user info via REST API, that return the followinf exception:

2019-07-04T12:19:21.70971 Started GET "/api-umbrella/v1/users/37fe58cc-8efc-4545-85fd-86e02a739408" for 127.0.0.1 at 2019-07-04 12:19:21 +0000
2019-07-04T12:19:21.71090 Processing by Api::V1::UsersController#show as JSON
2019-07-04T12:19:21.71093   Parameters: {"id"=>"37fe58cc-8efc-4545-85fd-86e02a739408", "user"=>{}}
2019-07-04T12:19:51.70928 source=rack-timeout id=4eb606b414551abef0c826d674774031 timeout=30000ms service=30000ms state=timed_out at=error
2019-07-04T12:19:51.70994 Completed 500 Internal Server Error in 29999ms
2019-07-04T12:19:51.71133
2019-07-04T12:19:51.71136 Rack::Timeout::RequestTimeoutException (Request ran for longer than 30000ms):
2019-07-04T12:19:51.71136   app/controllers/application_controller.rb:125:in authenticate_admin_from_token!
2019-07-04T12:19:51.71137   app/controllers/application_controller.rb:160:in set_userstamp
2019-07-04T12:19:51.71137   app/controllers/application_controller.rb:88:in block in use_locale
2019-07-04T12:19:51.71141   app/controllers/application_controller.rb:87:in use_locale

But i try to get the info from webui, that is work

2019-07-04T12:23:44.19671 Started GET "/api-umbrella/v1/users/37fe58cc-8efc-4545-85fd-86e02a739408" for 127.0.0.1 at 2019-07-04 12:23:44 +0000
2019-07-04T12:23:44.19809 Processing by Api::V1::UsersController#show as JSON
2019-07-04T12:23:44.19812   Parameters: {"id"=>"37fe58cc-8efc-4545-85fd-86e02a739408"}
2019-07-04T12:23:44.21360   Rendered api/v1/users/show.rabl (6.5ms)
2019-07-04T12:23:44.21391 Completed 200 OK in 16ms (Views: 7.2ms)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with app/controllers/application_controller.rb, particularly authenticate_admin_from_token!, set_userstamp, and use_locale, then compare the two request traces and their differing parameters. The issue names no test or expected code change; done would require identifying why the API request exceeds the 30-second timeout and confirming a resolution.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.