Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error during failsafe response: undefined method `env' for nil:NilClass #99

Open
ViciousMagician opened this issue Mar 23, 2021 · 0 comments

Comments

@ViciousMagician
Copy link

When i have notification set to true i get the error.

Here is the log output.

2021-03-23T12:27:36.953832+00:00 app[web.1]: Error during failsafe response: undefined method `env' for nil:NilClass
2021-03-23T12:27:36.953832+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/exception_handler-0.8.0.0/app/models/exception_handler/exception.rb:112:in `exception'
2021-03-23T12:27:36.953833+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/exception_handler-0.8.0.0/app/models/exception_handler/exception.rb:177:in `status'
2021-03-23T12:27:36.953833+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/exception_handler-0.8.0.0/app/models/exception_handler/exception.rb:193:in `email?'
2021-03-23T12:27:36.953833+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/callbacks.rb:426:in `block in make_lambda'
2021-03-23T12:27:36.953833+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/callbacks.rb:235:in `block (2 levels) in halting_and_conditional'
2021-03-23T12:27:36.953838+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/callbacks.rb:235:in `each'
2021-03-23T12:27:36.953839+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/callbacks.rb:235:in `all?'
2021-03-23T12:27:36.953839+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/callbacks.rb:235:in `block in halting_and_conditional'
2021-03-23T12:27:36.953839+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/callbacks.rb:517:in `block in invoke_after'
2021-03-23T12:27:36.953840+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/callbacks.rb:517:in `each'
2021-03-23T12:27:36.953840+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/callbacks.rb:517:in `invoke_after'
2021-03-23T12:27:36.953840+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/callbacks.rb:133:in `run_callbacks'
2021-03-23T12:27:36.953840+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/exception_handler-0.8.0.0/app/models/exception_handler/exception.rb:48:in `initialize'
2021-03-23T12:27:36.953841+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0/lib/action_dispatch/http/parameter_filter.rb:59:in `new'
2021-03-23T12:27:36.953841+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0/lib/action_dispatch/http/parameter_filter.rb:59:in `call'
2021-03-23T12:27:36.953841+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0/lib/action_dispatch/http/parameter_filter.rb:15:in `filter'
2021-03-23T12:27:36.953841+00:00 app[web.1]: /app/app/mailers/exception_handler/exception_mailer.rb:22:in `log_filter'
2021-03-23T12:27:36.953842+00:00 app[web.1]: /app/app/mailers/exception_handler/exception_mailer.rb:12:in `new_exception'
2021-03-23T12:27:36.953842+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0/lib/abstract_controller/base.rb:194:in `process_action'
2021-03-23T12:27:36.953842+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0/lib/abstract_controller/callbacks.rb:42:in `block in process_action'
2021-03-23T12:27:36.953842+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/callbacks.rb:98:in `run_callbacks'
2021-03-23T12:27:36.953843+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0/lib/abstract_controller/callbacks.rb:41:in `process_action'
2021-03-23T12:27:36.953843+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0/lib/abstract_controller/base.rb:134:in `process'
2021-03-23T12:27:36.953843+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/actionmailer-5.2.0/lib/action_mailer/rescuable.rb:25:in `block in process'
2021-03-23T12:27:36.953843+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/actionmailer-5.2.0/lib/action_mailer/rescuable.rb:17:in `handle_exceptions'
2021-03-23T12:27:36.953843+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/actionmailer-5.2.0/lib/action_mailer/rescuable.rb:24:in `process'
2021-03-23T12:27:36.953844+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/actionview-5.2.0/lib/action_view/rendering.rb:32:in `process'
2021-03-23T12:27:36.953844+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/actionmailer-5.2.0/lib/action_mailer/base.rb:607:in `block in process'
2021-03-23T12:27:36.953844+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/notifications.rb:168:in `block in instrument'
2021-03-23T12:27:36.953844+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/notifications/instrumenter.rb:23:in `instrument'
2021-03-23T12:27:36.953844+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/notifications.rb:168:in `instrument'
2021-03-23T12:27:36.953844+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/actionmailer-5.2.0/lib/action_mailer/base.rb:606:in `process'
2021-03-23T12:27:36.953845+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/actionmailer-5.2.0/lib/action_mailer/message_delivery.rb:123:in `block in processed_mailer'
2021-03-23T12:27:36.953845+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/actionmailer-5.2.0/lib/action_mailer/message_delivery.rb:122:in `tap'
2021-03-23T12:27:36.953845+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/actionmailer-5.2.0/lib/action_mailer/message_delivery.rb:122:in `processed_mailer'
2021-03-23T12:27:36.953848+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/actionmailer-5.2.0/lib/action_mailer/message_delivery.rb:29:in `__getobj__'
2021-03-23T12:27:36.953848+00:00 app[web.1]: /app/vendor/ruby-2.5.8/lib/ruby/2.5.0/delegate.rb:80:in `method_missing'
2021-03-23T12:27:36.953848+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/exception_handler-0.8.0.0/app/models/exception_handler/exception.rb:93:in `block (2 levels) in <module:ExceptionHandler>'
2021-03-23T12:27:36.953849+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/callbacks.rb:426:in `instance_exec'
2021-03-23T12:27:36.953849+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/callbacks.rb:426:in `block in make_lambda'
2021-03-23T12:27:36.953849+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/callbacks.rb:236:in `block in halting_and_conditional'
2021-03-23T12:27:36.953849+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/callbacks.rb:517:in `block in invoke_after'
2021-03-23T12:27:36.953849+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/callbacks.rb:517:in `each'
2021-03-23T12:27:36.953850+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/callbacks.rb:517:in `invoke_after'
2021-03-23T12:27:36.953850+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/callbacks.rb:133:in `run_callbacks'
2021-03-23T12:27:36.953850+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/exception_handler-0.8.0.0/app/models/exception_handler/exception.rb:48:in `initialize'
2021-03-23T12:27:36.953850+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/exception_handler-0.8.0.0/app/controllers/exception_handler/exceptions_controller.rb:20:in `new'
2021-03-23T12:27:36.953851+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/exception_handler-0.8.0.0/app/controllers/exception_handler/exceptions_controller.rb:20:in `block in <class:ExceptionsController>'
2021-03-23T12:27:36.953851+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/callbacks.rb:426:in `instance_exec'
2021-03-23T12:27:36.953851+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/callbacks.rb:426:in `block in make_lambda'
2021-03-23T12:27:36.953852+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/callbacks.rb:198:in `block (2 levels) in halting'
2021-03-23T12:27:36.953852+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0/lib/abstract_controller/callbacks.rb:34:in `block (2 levels) in <module:Callbacks>'
2021-03-23T12:27:36.953852+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/callbacks.rb:199:in `block in halting'
2021-03-23T12:27:36.953853+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/callbacks.rb:513:in `block in invoke_before'
2021-03-23T12:27:36.953853+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/callbacks.rb:513:in `each'
2021-03-23T12:27:36.953853+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/callbacks.rb:513:in `invoke_before'
2021-03-23T12:27:36.953853+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/callbacks.rb:131:in `run_callbacks'
2021-03-23T12:27:36.953853+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0/lib/abstract_controller/callbacks.rb:41:in `process_action'
2021-03-23T12:27:36.953854+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0/lib/action_controller/metal/rescue.rb:22:in `process_action'
2021-03-23T12:27:36.953854+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0/lib/action_controller/metal/instrumentation.rb:34:in `block in process_action'
2021-03-23T12:27:36.953854+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/notifications.rb:168:in `block in instrument'
2021-03-23T12:27:36.953854+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/notifications/instrumenter.rb:23:in `instrument'
2021-03-23T12:27:36.953854+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/notifications.rb:168:in `instrument'
2021-03-23T12:27:36.953854+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0/lib/action_controller/metal/instrumentation.rb:32:in `process_action'
2021-03-23T12:27:36.953855+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0/lib/action_controller/metal/params_wrapper.rb:256:in `process_action'
2021-03-23T12:27:36.953855+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/railties/controller_runtime.rb:24:in `process_action'
2021-03-23T12:27:36.953855+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/scout_apm-4.0.4/lib/scout_apm/instruments/action_controller_rails_3_rails4.rb:117:in `process_action'
2021-03-23T12:27:36.953855+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0/lib/abstract_controller/base.rb:134:in `process'
2021-03-23T12:27:36.953855+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/actionview-5.2.0/lib/action_view/rendering.rb:32:in `process'
2021-03-23T12:27:36.953858+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0/lib/action_controller/metal.rb:191:in `dispatch'
2021-03-23T12:27:36.953858+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0/lib/action_controller/metal.rb:236:in `block in action'
2021-03-23T12:27:36.953858+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/exception_handler-0.8.0.0/lib/exception_handler/engine.rb:54:in `block (2 levels) in <class:Engine>'
2021-03-23T12:27:36.953859+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0/lib/action_dispatch/middleware/show_exceptions.rb:51:in `render_exception'
2021-03-23T12:27:36.953859+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0/lib/action_dispatch/middleware/show_exceptions.rb:36:in `rescue in call'
2021-03-23T12:27:36.953859+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0/lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
2021-03-23T12:27:36.953859+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/rack/logger.rb:38:in `call_app'
2021-03-23T12:27:36.953860+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/rack/logger.rb:26:in `block in call'
2021-03-23T12:27:36.953860+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/tagged_logging.rb:71:in `block in tagged'
2021-03-23T12:27:36.953860+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/tagged_logging.rb:28:in `tagged'
2021-03-23T12:27:36.953860+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/tagged_logging.rb:71:in `tagged'
2021-03-23T12:27:36.953860+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/rack/logger.rb:26:in `call'
2021-03-23T12:27:36.953860+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0/lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
2021-03-23T12:27:36.953861+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/rack-timeout-0.6.0/lib/rack/timeout/core.rb:151:in `block in call'
2021-03-23T12:27:36.953861+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/rack-timeout-0.6.0/lib/rack/timeout/support/timeout.rb:19:in `timeout'
2021-03-23T12:27:36.953861+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/rack-timeout-0.6.0/lib/rack/timeout/core.rb:150:in `call'
2021-03-23T12:27:36.953861+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0/lib/action_dispatch/middleware/request_id.rb:27:in `call'
2021-03-23T12:27:36.953861+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/rack-2.2.3/lib/rack/method_override.rb:24:in `call'
2021-03-23T12:27:36.953862+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/rack-2.2.3/lib/rack/runtime.rb:22:in `call'
2021-03-23T12:27:36.953862+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/rails_autoscale_agent-0.10.2/lib/rails_autoscale_agent/middleware.rb:27:in `call'
2021-03-23T12:27:36.953862+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
2021-03-23T12:27:36.953862+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0/lib/action_dispatch/middleware/executor.rb:14:in `call'
2021-03-23T12:27:36.953862+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0/lib/action_dispatch/middleware/static.rb:127:in `call'
2021-03-23T12:27:36.953863+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/rack-2.2.3/lib/rack/sendfile.rb:110:in `call'
2021-03-23T12:27:36.953863+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/scout_apm-4.0.4/lib/scout_apm/instruments/middleware_summary.rb:58:in `call'
2021-03-23T12:27:36.953863+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/engine.rb:524:in `call'
2021-03-23T12:27:36.953863+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/puma-3.12.6/lib/puma/configuration.rb:227:in `call'
2021-03-23T12:27:36.953864+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/puma-3.12.6/lib/puma/server.rb:706:in `handle_request'
2021-03-23T12:27:36.953864+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/puma-3.12.6/lib/puma/server.rb:476:in `process_client'
2021-03-23T12:27:36.953864+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/puma-3.12.6/lib/puma/server.rb:334:in `block in run'
2021-03-23T12:27:36.953864+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/puma-3.12.6/lib/puma/thread_pool.rb:135:in `block in spawn_thread'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant