Skip to content

NoMethodError: undefined method add_session for nil #2378

Description

@MrSerth

Issue Description

In my server logs (but not in Sentry), I found another occurrence of #2268: NoMethodError: undefined method 'add_session for nil

Reproduction Steps

Unfortunately, I don't have clear reproduction steps. I know that the error occurred during this trace and doesn't occur regularly.

Expected Behavior

No error is generated in Sentry, and add_session can be called successfully.

Actual Behavior

A NoMethodError is raised.

Image

Ruby Version

3.3.4

SDK Version

5.18.2

Integration and Its Version

Rails 7.1.3.4

Sentry Config

No response

Metadata

Metadata

Assignees

Labels

Fields

No fields configured for issues without a type.

Projects

Status
Waiting for: Product Owner

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions