-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The ExtraErrorData integration is not capturing nested error causes #15142
Comments
Hi @michaelschufi, thanks for filing this. I just tested this out and had a look at our code, indeed if This is something we can consider changing, I'll bring it up with the team. Otherwise, we also welcome contributions if you're interested. |
Thanks for the quick response @andreiborza. Sounds good! I fully expected the integration to walk through all the attributes up to the defined depth - and with Also, I want to mention that sometimes there's an error in the error stack that we have no control over (e.g. from a framework Edit: Regarding contributions - I'm not sure how, but I'm happy to assist. |
Thanks, we'll take a look at that too. |
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/nextjs
SDK Version
8.51.0
Framework Version
Next 15.1.3
Link to Sentry event
https://sally-and-friends.sentry.io/issues/6215894150/events/2b86efb54ff54674bac3bd0582bc1952/
Reproduction Example/SDK Setup
// sentry.server.config (same for the other two)
// my custom error class' toJSON
Steps to Reproduce
toJSON
method, which includes thethis.cause
property.cause
. E.g.Expected Result
The top-level error is getting serialized, including the extra error data.
The
cause
field is another structured error data. E.g.because capturing the
cause
is enabled by default.Actual Result
The nested error getting serialized in the format `${errorClassName}: ${message} instead of the whole structured data.
The text was updated successfully, but these errors were encountered: