-
-
Notifications
You must be signed in to change notification settings - Fork 513
exception happened in background worker: ActiveRecord::ConnectionNotEstablished #1745
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
Comments
@sdogruyol Thanks for reporting the issue. The root cause is that we have this code in the SDK's background worker to make sure we release So in #1746, I tried to replace the code with a higher-level helper. But because I don't know how you set up Sequal with your Rails app, I can't test it for you. Can you try the branch and let me know if it fixes the issue? |
Hey @st0012 thanks a lot for the response. I just tried your branch and it doesn't seem to fix the problem. Still getting the same |
@sdogruyol can you set |
I am experiencing this issue after upgrading sentry-rails from 4.2.2 to 5.1.0. As a workaround I've resorted to synchronous event sending. config.background_worker_threads = 0 |
@sdogruyol @ajparise sorry for the delay. I've added #1769 to address the issue, which I think should solve the problem. it'd be great if you can help me verify the fix, thx 🙂 |
@st0012 verified, thanks for the fix. |
@ajparise thank you 👍 |
Issue Description
This started to happen after we upgraded our application from Rails 6.1 to Rails 7.0.2.2.
Sentry SDK just crashes in the middle of the request with an unrelated stacktrace and the following error
The weird part is that our application uses Sequel and not ActiveRecord.
Reproduction Steps
Not available
Expected Behavior
Should not crash the request
Actual Behavior
Crashes the request with 500 error
Ruby Version
3.0.3
SDK Version
5.0.2
Integration and Its Version
5.0.2
Sentry Config
The text was updated successfully, but these errors were encountered: