{"action":"created","issue":{"url":"https://api.github.com/repos/phusion/passenger/issues/1218","repository_url":"https://api.github.com/repos/phusion/passenger","labels_url":"https://api.github.com/repos/phusion/passenger/issues/1218/labels{/name}","comments_url":"https://api.github.com/repos/phusion/passenger/issues/1218/comments","events_url":"https://api.github.com/repos/phusion/passenger/issues/1218/events","html_url":"https://github.com/phusion/passenger/issues/1218","id":36247737,"node_id":"MDU6SXNzdWUzNjI0NzczNw==","number":1218,"title":"Show an error page when the Rack app object returns a nil body","user":{"login":"FooBarWidget","id":819,"node_id":"MDQ6VXNlcjgxOQ==","avatar_url":"https://avatars3.githubusercontent.com/u/819?v=4","gravatar_id":"","url":"https://api.github.com/users/FooBarWidget","html_url":"https://github.com/FooBarWidget","followers_url":"https://api.github.com/users/FooBarWidget/followers","following_url":"https://api.github.com/users/FooBarWidget/following{/other_user}","gists_url":"https://api.github.com/users/FooBarWidget/gists{/gist_id}","starred_url":"https://api.github.com/users/FooBarWidget/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FooBarWidget/subscriptions","organizations_url":"https://api.github.com/users/FooBarWidget/orgs","repos_url":"https://api.github.com/users/FooBarWidget/repos","events_url":"https://api.github.com/users/FooBarWidget/events{/privacy}","received_events_url":"https://api.github.com/users/FooBarWidget/received_events","type":"User","site_admin":false},"labels":[{"id":107524206,"node_id":"MDU6TGFiZWwxMDc1MjQyMDY=","url":"https://api.github.com/repos/phusion/passenger/labels/Bounty/Very%20easy","name":"Bounty/Very easy","color":"d4c5f9","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2014-06-22T17:17:57Z","updated_at":"2018-09-17T06:59:08Z","closed_at":"2018-09-17T06:59:08Z","author_association":"MEMBER","body":"The Rack app object returning a nil body could indicate a bug in one of the Rack middlewares, but it could also indicate an error in Rails. For example, if Rails is configured to use memcache, but the memcache daemon isn't running, then Rails sometimes returns a nil body on all requests, instead of throwing an exception during startup. This behavior is extremely confusing, and it doesn't leave any proper error messages in the logs. The Ruby request handler (rack/thread_handler_extension.rb) should output an appropriate error message if it detects a nil body.\n"},"comment":{"url":"https://api.github.com/repos/phusion/passenger/issues/comments/421908499","html_url":"https://github.com/phusion/passenger/issues/1218#issuecomment-421908499","issue_url":"https://api.github.com/repos/phusion/passenger/issues/1218","id":421908499,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMTkwODQ5OQ==","user":{"login":"FooBarWidget","id":819,"node_id":"MDQ6VXNlcjgxOQ==","avatar_url":"https://avatars3.githubusercontent.com/u/819?v=4","gravatar_id":"","url":"https://api.github.com/users/FooBarWidget","html_url":"https://github.com/FooBarWidget","followers_url":"https://api.github.com/users/FooBarWidget/followers","following_url":"https://api.github.com/users/FooBarWidget/following{/other_user}","gists_url":"https://api.github.com/users/FooBarWidget/gists{/gist_id}","starred_url":"https://api.github.com/users/FooBarWidget/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FooBarWidget/subscriptions","organizations_url":"https://api.github.com/users/FooBarWidget/orgs","repos_url":"https://api.github.com/users/FooBarWidget/repos","events_url":"https://api.github.com/users/FooBarWidget/events{/privacy}","received_events_url":"https://api.github.com/users/FooBarWidget/received_events","type":"User","site_admin":false},"created_at":"2018-09-17T06:59:08Z","updated_at":"2018-09-17T06:59:08Z","author_association":"MEMBER","body":"Test again w/ Passenger 5.3. The browser receives an \"Incomplete response received from application\" error message, while the following is logged:\r\n\r\n~~~\r\n[ W 2018-09-17 08:58:35.9364 62139/Tc age/Cor/Con/InternalUtils.cpp:96 ]: [Client 3-1] Sending 502 response: application did not send a complete response\r\nApp 62177 output: [ 2018-09-17 08:58:35.9372 62177/0x00007fef9c007858(Worker 1) utils.rb ]: *** Exception NoMethodError (undefined method `[]' for nil:NilClass) (process 62177, thread 0x00007fef9c007858(Worker 1)):\r\nApp 62177 output: \tfrom /Users/hongli/Projects/passenger/src/ruby_supportlib/phusion_passenger/rack/thread_handler_extension.rb:126:in `process_request'\r\nApp 62177 output: \tfrom /Users/hongli/Projects/passenger/src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb:157:in `accept_and_process_next_request'\r\nApp 62177 output: \tfrom /Users/hongli/Projects/passenger/src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb:110:in `main_loop'\r\nApp 62177 output: \tfrom /Users/hongli/Projects/passenger/src/ruby_supportlib/phusion_passenger/request_handler.rb:415:in `block (3 levels) in start_threads'\r\nApp 62177 output: \tfrom /Users/hongli/Projects/passenger/src/ruby_supportlib/phusion_passenger/utils.rb:113:in `block in create_thread_and_abort_on_exception'\r\n~~~\r\n\r\nI think this is good enough, so closing this issue."}}
{"actor":{"display_login":"FooBarWidget"}}