This repository was archived by the owner on Apr 16, 2026. It is now read-only.
Correcting rate_limit message format for application/json solves #9#8
Open
janani-vijayan wants to merge 1 commit intoiugu:masterfrom
Open
Correcting rate_limit message format for application/json solves #9#8janani-vijayan wants to merge 1 commit intoiugu:masterfrom
janani-vijayan wants to merge 1 commit intoiugu:masterfrom
Conversation
Author
|
Solves #9 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rate-limit response for application/json throws below error which leads to constant restart of the application.
*** Exception NoMethodError in application (undefined method `each' for "[\"Rate Limit Exceeded\"]":String) (process 18532, thread #<Thread:0x0000000190a640>): from /<application>/vendor/ruby/2.1.0/gems/rack-1.6.11/lib/rack/body_proxy.rb:31:in `each' from /<application>/vendor/ruby/2.1.0/gems/rack-1.6.11/lib/rack/body_proxy.rb:31:in `each' from /<application>/vendor/ruby/2.1.0/gems/rack-1.6.11/lib/rack/body_proxy.rb:31:in `each' from /<application>/vendor/ruby/2.1.0/gems/rack-1.6.11/lib/rack/body_proxy.rb:31:in `each' from /usr/local/lib/ruby/gems/2.1.0/gems/passenger-3.0.21/lib/phusion_passenger/rack/request_handler.rb:144:in `process_request' from /usr/local/lib/ruby/gems/2.1.0/gems/passenger-3.0.21/lib/phusion_passenger/abstract_request_handler.rb:520:in `accept_and_process_next_request' from /usr/local/lib/ruby/gems/2.1.0/gems/passenger-3.0.21/lib/phusion_passenger/abstract_request_handler.rb:274:in `main_loop' from /usr/local/lib/ruby/gems/2.1.0/gems/passenger-3.0.21/lib/phusion_passenger/rack/application_spawner.rb:206:in `start_request_handler' from /usr/local/lib/ruby/gems/2.1.0/gems/passenger-3.0.21/lib/phusion_passenger/rack/application_spawner.rb:171:in `block in handle_spawn_application' from /usr/local/lib/ruby/gems/2.1.0/gems/passenger-3.0.21/lib/phusion_passenger/utils.rb:470:in `safe_fork' from /usr/local/lib/ruby/gems/2.1.0/gems/passenger-3.0.21/lib/phusion_passenger/rack/application_spawner.rb:166:in `handle_spawn_application' from /usr/local/lib/ruby/gems/2.1.0/gems/passenger-3.0.21/lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop' from /usr/local/lib/ruby/gems/2.1.0/gems/passenger-3.0.21/lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously' from /usr/local/lib/ruby/gems/2.1.0/gems/passenger-3.0.21/lib/phusion_passenger/abstract_server.rb:180:in `start' from /usr/local/lib/ruby/gems/2.1.0/gems/passenger-3.0.21/lib/phusion_passenger/rack/application_spawner.rb:129:in `start' from /usr/local/lib/ruby/gems/2.1.0/gems/passenger-3.0.21/lib/phusion_passenger/spawn_manager.rb:253:in `block (2 levels) in spawn_rack_application' from /usr/local/lib/ruby/gems/2.1.0/gems/passenger-3.0.21/lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add' from /usr/local/lib/ruby/gems/2.1.0/gems/passenger-3.0.21/lib/phusion_passenger/spawn_manager.rb:246:in `block in spawn_rack_application' from /usr/local/lib/ruby/gems/2.1.0/gems/passenger-3.0.21/lib/phusion_passenger/abstract_server_collection.rb:82:in `block in synchronize' from /usr/local/lib/ruby/gems/2.1.0/gems/passenger-3.0.21/lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize' from /usr/local/lib/ruby/gems/2.1.0/gems/passenger-3.0.21/lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize' from /usr/local/lib/ruby/gems/2.1.0/gems/passenger-3.0.21/lib/phusion_passenger/spawn_manager.rb:244:in `spawn_rack_application' from /usr/local/lib/ruby/gems/2.1.0/gems/passenger-3.0.21/lib/phusion_passenger/spawn_manager.rb:137:in `spawn_application' from /usr/local/lib/ruby/gems/2.1.0/gems/passenger-3.0.21/lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application' from /usr/local/lib/ruby/gems/2.1.0/gems/passenger-3.0.21/lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop' from /usr/local/lib/ruby/gems/2.1.0/gems/passenger-3.0.21/lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously' from /usr/local/lib/ruby/gems/2.1.0/gems/passenger-3.0.21/helper-scripts/passenger-spawn-server:99:in `<main>'