BlueRidgeLabs / patterns

A platform to manage a human centered design process
https://labs.robinhood.org/design-insight-group/
MIT License
4 stars 2 forks source link

[Airbrake] [Production] undefined method `add_user' for nil:NilClass #442

Open cromulus opened 1 year ago

cromulus commented 1 year ago

Airbrake error: #7372 Airbrake project: Patterns

Error type: NoMethodError Error message: undefined method `add_user' for nil:NilClass Where: dashboard#index Occurred at: Mar 20, 2023 19:28:50 UTC First seen at: Mar 20, 2023 19:28:50 UTC Occurrences: 0 (0 since last deploy on <no information>) Severity: error

URL: https://patterns.brl.nyc/ File: /PROJECT_ROOT/app/models/user.rb

Backtrace:

/PROJECT_ROOT/app/models/user.rb:149:in rescue in current_cart
/PROJECT_ROOT/app/models/user.rb:144:in current_cart
/PROJECT_ROOT/app/controllers/dashboard_controller.rb:22:in index
/GEM_ROOT/gems/actionpack-6.0.6/lib/action_controller/metal/basic_implicit_render.rb:6:in send_action
/GEM_ROOT/gems/actionpack-6.0.6/lib/abstract_controller/base.rb:195:in process_action
/GEM_ROOT/gems/actionpack-6.0.6/lib/action_controller/metal/rendering.rb:30:in process_action
/GEM_ROOT/gems/actionpack-6.0.6/lib/abstract_controller/callbacks.rb:42:in block in process_action
/GEM_ROOT/gems/activesupport-6.0.6/lib/active_support/callbacks.rb:112:in block in run_callbacks
/GEM_ROOT/gems/actiontext-6.0.6/lib/action_text/rendering.rb:19:in with_renderer
/GEM_ROOT/gems/actiontext-6.0.6/lib/action_text/engine.rb:55:in block (4 levels) in <class:Engine>
/GEM_ROOT/gems/activesupport-6.0.6/lib/active_support/callbacks.rb:121:in instance_exec
/GEM_ROOT/gems/activesupport-6.0.6/lib/active_support/callbacks.rb:121:in block in run_callbacks
/GEM_ROOT/gems/activesupport-6.0.6/lib/active_support/callbacks.rb:139:in run_callbacks
/GEM_ROOT/gems/actionpack-6.0.6/lib/abstract_controller/callbacks.rb:41:in process_action
/GEM_ROOT/gems/actionpack-6.0.6/lib/action_controller/metal/rescue.rb:22:in process_action
/GEM_ROOT/gems/actionpack-6.0.6/lib/action_controller/metal/instrumentation.rb:33:in block in process_action
/GEM_ROOT/gems/activesupport-6.0.6/lib/active_support/notifications.rb:180:in block in instrument
/GEM_ROOT/gems/activesupport-6.0.6/lib/active_support/notifications/instrumenter.rb:24:in instrument
/GEM_ROOT/gems/activesupport-6.0.6/lib/active_support/notifications.rb:180:in instrument
/GEM_ROOT/gems/actionpack-6.0.6/lib/action_controller/metal/instrumentation.rb:32:in process_action
/GEM_ROOT/gems/actionpack-6.0.6/lib/action_controller/metal/params_wrapper.rb:245:in process_action
/GEM_ROOT/gems/activerecord-6.0.6/lib/active_record/railties/controller_runtime.rb:27:in process_action
/GEM_ROOT/gems/actionpack-6.0.6/lib/abstract_controller/base.rb:136:in process
/GEM_ROOT/gems/actionview-6.0.6/lib/action_view/rendering.rb:39:in process
/GEM_ROOT/gems/actionpack-6.0.6/lib/action_controller/metal.rb:190:in dispatch
/GEM_ROOT/gems/actionpack-6.0.6/lib/action_controller/metal.rb:254:in dispatch
/GEM_ROOT/gems/actionpack-6.0.6/lib/action_dispatch/routing/route_set.rb:50:in dispatch
/GEM_ROOT/gems/actionpack-6.0.6/lib/action_dispatch/routing/route_set.rb:33:in serve
/GEM_ROOT/gems/actionpack-6.0.6/lib/action_dispatch/journey/router.rb:49:in block in serve
/GEM_ROOT/gems/actionpack-6.0.6/lib/action_dispatch/journey/router.rb:32:in each
/GEM_ROOT/gems/actionpack-6.0.6/lib/action_dispatch/journey/router.rb:32:in serve
/GEM_ROOT/gems/actionpack-6.0.6/lib/action_dispatch/routing/route_set.rb:834:in call
/GEM_ROOT/gems/skylight-5.3.4/lib/skylight/probes/action_dispatch/routing/route_set.rb:10:in block in call
/GEM_ROOT/gems/activesupport-6.0.6/lib/active_support/notifications.rb:182:in instrument
/GEM_ROOT/gems/skylight-5.3.4/lib/skylight/probes/action_dispatch/routing/route_set.rb:10:in call
/GEM_ROOT/gems/twilio-ruby-5.73.3/lib/rack/twilio_webhook_authentication.rb:36:in call
/GEM_ROOT/gems/warden-1.2.9/lib/warden/manager.rb:36:in block in call
/GEM_ROOT/gems/warden-1.2.9/lib/warden/manager.rb:34:in catch
/GEM_ROOT/gems/warden-1.2.9/lib/warden/manager.rb:34:in call
/GEM_ROOT/gems/rack-2.2.4/lib/rack/tempfile_reaper.rb:15:in call
/GEM_ROOT/gems/rack-2.2.4/lib/rack/etag.rb:27:in call
/GEM_ROOT/gems/rack-2.2.4/lib/rack/conditional_get.rb:27:in call
/GEM_ROOT/gems/rack-2.2.4/lib/rack/head.rb:12:in call
/GEM_ROOT/gems/actionpack-6.0.6/lib/action_dispatch/http/content_security_policy.rb:18:in call
/GEM_ROOT/gems/rack-2.2.4/lib/rack/session/abstract/id.rb:266:in context
/GEM_ROOT/gems/rack-2.2.4/lib/rack/session/abstract/id.rb:260:in call
/GEM_ROOT/gems/actionpack-6.0.6/lib/action_dispatch/middleware/cookies.rb:654:in call
/GEM_ROOT/gems/actionpack-6.0.6/lib/action_dispatch/middleware/callbacks.rb:27:in block in call
/GEM_ROOT/gems/activesupport-6.0.6/lib/active_support/callbacks.rb:101:in run_callbacks
/GEM_ROOT/gems/actionpack-6.0.6/lib/action_dispatch/middleware/callbacks.rb:26:in call
...
Caused by NoMethodError: undefined method `cart' for nil:NilClass

Visit Airbrake error to view the full backtrace.