Skip to content

Scope data not getting set when calling captureException #6583

@ryan-gray-db

Description

@ryan-gray-db

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which package are you using?

@sentry/node

SDK Version

7.27.0

Framework Version

7.27.0

Link to Sentry event

https://sentry.io/organizations/dreambound/issues/3823746073/events/bbe20bb968c346fa876f84ba7d0a80a8/?project=5671000

Steps to Reproduce

No scope context, user, tags, etc seems to be getting set, via any method of setting scope (e.g. Sentry.setContext, captureException(error, someScope), etc). When debugging, I can see an exception begin caught inside scope.js where it's trying to spread undefined with [...scope._attachments]
Screenshot 2022-12-19 at 6 08 25 PM

Expected Result

Context, user, tags, etc to be shown in the Sentry error event
Screenshot 2022-12-19 at 6 07 56 PM

Actual Result

No context, user, tags, etc are shown in the Sentry error event
Screenshot 2022-12-19 at 6 07 11 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    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