Rails 7 Update Breaking in Production on Heroku

First post here, so bear with me...

I recently updated my Rails app to 7.0.1 (latest stable release) from 6.1.4. My test suite is still green and the deployment to Heroku succeeds. However, when trying to open the app I get the classic "We're sorry, but something went wrong message". Checking the logs, this is the output:

ErrorMessage1 ErrorMessage2

I'm still relatively new to Rails/Heroku deployments, and I'm stumped on where to look to try and fix this. The NoMethodError does not show many solutions online, any help is appreciated! Thank you in advance.


Your problem is related to an open issue about airbrake Discussion on rails repo Discussion on airbrake repo. The issue is triggered when we use eager loading. For now, the quickest solution would be to disable eager loading and watch the issue or continue with rails 6 or temporarily stop using airbrake.

config.eager_load = false // to disable eager loading _ production.rb

[edit] A new version of airbrake fixes this issue so that you won't need to disable eager loading in production. airbrake:13.0.0 fix.

So, you'll just need to update to the proper version in your Gemfile.