Skip to content

Error on RewriteFrames when no StackTrace is available. #5609

@lucas-zimerman

Description

@lucas-zimerman

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which package are you using?

@sentry/vue

SDK Version

7.10.0

Framework Version

@sentry/vue

Link to Sentry event

No response

Steps to Reproduce

Sample project for Repro: https://github.com/lucas-zimerman/vue-sample

Might be able to reproduce it using CaptureException("String") as long as the exception doesn't have a StackTrace AND with RewriteFrames added to the integrations list...

I noticed that when adding a custom RewriteFrames to the default integration and once captured an exception without a Stack Trace, the following error will appear on Sentry
image

removing the custom RewriteFrames makes the problem go away

Event with RewriteFrames:
https://sentry.io/organizations/sentry-sdks/issues/3506485394/events/8ddefde797594beaa5e4121359365d1d/?project=5522756
Event without RewriteFrames:
https://sentry.io/organizations/sentry-sdks/issues/3506485394/events/1f8af199287248db8d638e6251bd3146/?project=5522756#context-user

My assumption is the default constructor is adding an empty Stack-Trace despite value.stacktrace being undefined

https://github.dev/getsentry/sentry-javascript/blob/0bb009253d85ee751cecace9be5f0703009cc623/packages/integrations/src/rewriteframes.ts#L89-L107

Expected Result

An event with StackTrace or without the error message (I am not sure if that specific error on my sample project should have a Stack Trace)

Actual Result

The error message at Sentry.

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions