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

ActiveRecord::RecordNotFound should be 404 and not reported by rollbar #536

Open
pgwillia opened this issue Jan 29, 2024 · 0 comments
Open

Comments

@pgwillia
Copy link
Member

View details in Rollbar: https://app.rollbar.com/a/ualbertalib/fix/item/library-cms/8


ActiveRecord::RecordNotFound: can't find record with friendly id: "ask-us"
  File "/var/www/sites/library-cms/vendor/ruby/3.1.0/gems/friendly_id-5.5.1/lib/friendly_id/finder_methods.rb", line 119, in raise_not_found_exception
  File "/var/www/sites/library-cms/vendor/ruby/3.1.0/gems/friendly_id-5.5.1/lib/friendly_id/finder_methods.rb", line 34, in find
  File "/var/www/sites/library-cms/app/controllers/profiles_controller.rb", line 62, in show
  File "/var/www/sites/library-cms/vendor/ruby/3.1.0/gems/actionpack-7.1.2/lib/action_controller/metal/basic_implicit_render.rb", line 6, in send_action
  File "/var/www/sites/library-cms/vendor/ruby/3.1.0/gems/actionpack-7.1.2/lib/abstract_controller/base.rb", line 224, in process_action
  File "/var/www/sites/library-cms/vendor/ruby/3.1.0/gems/actionpack-7.1.2/lib/action_controller/metal/rendering.rb", line 165, in process_action
  File "/var/www/sites/library-cms/vendor/ruby/3.1.0/gems/actionpack-7.1.2/lib/abstract_controller/callbacks.rb", line 259, in block in process_action
  File "/var/www/sites/library-cms/vendor/ruby/3.1.0/gems/activesupport-7.1.2/lib/active_support/callbacks.rb", line 121, in block in run_callbacks
  File "/var/www/sites/library-cms/vendor/ruby/3.1.0/gems/actiontext-7.1.2/lib/action_text/rendering.rb", line 23, in with_renderer
  File "/var/www/sites/library-cms/vendor/ruby/3.1.0/gems/actiontext-7.1.2/lib/action_text/engine.rb", line 69, in block (4 levels) in <class:Engine>
  File "/var/www/sites/library-cms/vendor/ruby/3.1.0/gems/activesupport-7.1.2/lib/active_support/callbacks.rb", line 130, in instance_exec
  File "/var/www/sites/library-cms/vendor/ruby/3.1.0/gems/activesupport-7.1.2/lib/active_support/callbacks.rb", line 130, in block in run_callbacks
  File "/var/www/sites/library-cms/vendor/ruby/3.1.0/gems/activesupport-7.1.2/lib/active_support/callbacks.rb", line 141, in run_callbacks
  File "/var/www/sites/library-cms/vendor/ruby/3.1.0/gems/actionpack-7.1.2/lib/abstract_controller/callbacks.rb", line 258, in process_action
  File "/var/www/sites/library-cms/vendor/ruby/3.1.0/gems/actionpack-7.1.2/lib/action_controller/metal/rescue.rb", line 25, in process_action
  File "/var/www/sites/library-cms/vendor/ruby/3.1.0/gems/actionpack-7.1.2/lib/action_controller/metal/instrumentation.rb", line 74, in block in process_action
  File "/var/www/sites/library-cms/vendor/ruby/3.1.0/gems/activesupport-7.1.2/lib/active_support/notifications.rb", line 206, in block in instrument
  File "/var/www/sites/library-cms/vendor/ruby/3.1.0/gems/activesupport-7.1.2/lib/active_support/notifications/instrumenter.rb", line 58, in instrument
  File "/var/www/sites/library-cms/vendor/ruby/3.1.0/gems/activesupport-7.1.2/lib/active_support/notifications.rb", line 206, in instrument
  File "/var/www/sites/library-cms/vendor/ruby/3.1.0/gems/actionpack-7.1.2/lib/action_controller/metal/instrumentation.rb", line 73, in process_action
  File "/var/www/sites/library-cms/vendor/ruby/3.1.0/gems/actionpack-7.1.2/lib/action_controller/metal/params_wrapper.rb", line 261, in process_action
  File "/var/www/sites/library-cms/vendor/ruby/3.1.0/gems/activerecord-7.1.2/lib/active_record/railties/controller_runtime.rb", line 32, in process_action
  File "/var/www/sites/library-cms/vendor/ruby/3.1.0/gems/actionpack-7.1.2/lib/abstract_controller/base.rb", line 160, in process
  File "/var/www/sites/library-cms/vendor/ruby/3.1.0/gems/actionview-7.1.2/lib/action_view/rendering.rb", line 40, in process
  File "/var/www/sites/library-cms/vendor/ruby/3.1.0/gems/actionpack-7.1.2/lib/action_controller/metal.rb", line 227, in dispatch
  File "/var/www/sites/library-cms/vendor/ruby/3.1.0/gems/actionpack-7.1.2/lib/action_controller/metal.rb", line 309, in dispatch
  File "/var/www/sites/library-cms/vendor/ruby/3.1.0/gems/actionpack-7.1.2/lib/action_dispatch/routing/route_set.rb", line 49, in dispatch
  File "/var/www/sites/library-cms/vendor/ruby/3.1.0/gems/actionpack-7.1.2/lib/action_dispatch/routing/route_set.rb", line 32, in serve
  File "/var/www/sites/library-cms/vendor/ruby/3.1.0/gems/actionpack-7.1.2/lib/action_dispatch/journey/router.rb", line 51, in block in serve
  File "/var/www/sites/library-cms/vendor/ruby/3.1.0/gems/actionpack-7.1.2/lib/action_dispatch/journey/router.rb", line 131, in block in find_routes
  File "/var/www/sites/library-cms/vendor/ruby/3.1.0/gems/actionpack-7.1.2/lib/action_dispatch/journey/router.rb", line 124, in each
  File "/var/www/sites/library-cms/vendor/ruby/3.1.0/gems/actionpack-7.1.2/lib/action_dispatch/journey/router.rb", line 124, in find_routes
  File "/var/www/sites/library-cms/vendor/ruby/3.1.0/gems/actionpack-7.1.2/lib/action_dispatch/journey/router.rb", line 32, in serve
  File "/var/www/sites/library-cms/vendor/ruby/3.1.0/gems/actionpack-7.1.2/lib/action_dispatch/routing/route_set.rb", line 882, in call
  File "/var/www/sites/library-cms/vendor/ruby/3.1.0/gems/rack-3.0.8/lib/rack/tempfile_reaper.rb", line 20, in call
  File "/var/www/sites/library-cms/vendor/ruby/3.1.0/gems/rack-3.0.8/lib/rack/etag.rb", line 29, in call
  File "/var/www/sites/library-cms/vendor/ruby/3.1.0/gems/rack-3.0.8/lib/rack/conditional_get.rb", line 31, in call
  File "/var/www/sites/library-cms/vendor/ruby/3.1.0/gems/rack-3.0.8/lib/rack/head.rb", line 15, in call
  File "/var/www/sites/library-cms/vendor/ruby/3.1.0/gems/actionpack-7.1.2/lib/action_dispatch/http/permissions_policy.rb", line 36, in call
  File "/var/www/sites/library-cms/vendor/ruby/3.1.0/gems/actionpack-7.1.2/lib/action_dispatch/http/content_security_policy.rb", line 33, in call
  File "/var/www/sites/library-cms/vendor/ruby/3.1.0/gems/rack-session-2.0.0/lib/rack/session/abstract/id.rb", line 272, in context
  File "/var/www/sites/library-cms/vendor/ruby/3.1.0/gems/rack-session-2.0.0/lib/rack/session/abstract/id.rb", line 266, in call
  File "/var/www/sites/library-cms/vendor/ruby/3.1.0/gems/actionpack-7.1.2/lib/action_dispatch/middleware/cookies.rb", line 689, in call
  File "/var/www/sites/library-cms/vendor/ruby/3.1.0/gems/actionpack-7.1.2/lib/action_dispatch/middleware/callbacks.rb", line 29, in block in call
  File "/var/www/sites/library-cms/vendor/ruby/3.1.0/gems/activesupport-7.1.2/lib/active_support/callbacks.rb", line 101, in run_callbacks
  File "/var/www/sites/library-cms/vendor/ruby/3.1.0/gems/actionpack-7.1.2/lib/action_dispatch/middleware/callbacks.rb", line 28, in call
  File "/var/www/sites/library-cms/vendor/ruby/3.1.0/gems/rollbar-3.5.1/lib/rollbar/middleware/rails/rollbar.rb", line 25, in block in call
  File "/var/www/sites/library-cms/vendor/ruby/3.1.0/gems/rollbar-3.5.1/lib/rollbar.rb", line 145, in scoped
  File "/var/www/sites/library-cms/vendor/ruby/3.1.0/gems/rollbar-3.5.1/lib/rollbar/middleware/rails/rollbar.rb", line 22, in call
  File "/var/www/sites/library-cms/vendor/ruby/3.1.0/gem
@pgwillia pgwillia changed the title ActiveRecord::RecordNotFound: can't find record with friendly id: "kathleen-delong" ActiveRecord::RecordNotFound should be 404 and not reported by rollbar Jan 29, 2024
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