Skip to content

exception happened in background worker: ActiveRecord::ConnectionNotEstablished #1745

@sdogruyol

Description

@sdogruyol

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

ERROR -- sentry: exception happened in background worker: ActiveRecord::ConnectionNotEstablished

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

# frozen_string_literal: true

Sentry.init do |config|
  config.dsn = ENV.fetch('SENTRY_RAVEN_KEY')
  config.send_default_pii = true
end

Metadata

Metadata

Assignees

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions