Skip to content

undefined method `[]' for nil:NilClass in session.flusher.rb #1891

@rodolfoBee

Description

@rodolfoBee

Issue Description

A user has reported an issue in the Rails SDK. The stack trace points to this file as can be seen the screenshot from the Sentry event:

***Removed Screenshot At Request Of Initial Reporter - @souredoutlook

The current workaround is to disable session tracking the SDK initialisation using auto_session_tracking = false

Reproduction Steps

Unknown

Expected Behavior

No errors

Actual Behavior

An internal server error is thrown in the client application.

Ruby Version

2.7.4

SDK Version

5.4.2

Integration and Its Version

Rails: 6.1.4.1

Sentry Config

Sentry.init do |config|
config.dsn = Settings.sentry.dsn
config.environment = Settings.env

config.excluded_exceptions = [ActionController::RoutingError]

filter = ActiveSupport::ParameterFilter.new(Rails.application.config.filter_parameters)
config.before_send = lambda do |event, hint|
filter.filter(event.to_hash)
end
end

Metadata

Metadata

Assignees

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions