Skip to content
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

cause of an error not being reported/rendered when it's structured data #13357

Closed
3 tasks done
tleunen opened this issue Aug 13, 2024 · 3 comments
Closed
3 tasks done
Labels
Migrated Package: browser Issues related to the Sentry Browser SDK

Comments

@tleunen
Copy link

tleunen commented Aug 13, 2024

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/browser

SDK Version

8.25.0

Framework Version

No response

Link to Sentry event

No response

Reproduction Example/SDK Setup

I've seen cause being reported in the past when they were of type "error", but when they are simply structured data, it doesn't seem to be reported anywhere.
Although according to MDN, this should be allowed
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/cause#providing_structured_data_as_the_error_cause

Steps to Reproduce

  1. Throw an error with a cause as structured data, such as
throw new Error('Custom error with structured cause', {
        cause: {
          booleanValue: true
          text: 'message',
          array: [1, 2, 3]
        },
      })
  1. Notice the cause never shows up in the web interface for the reported error

Expected Result

The cause should show up

Actual Result

The cause doesn't show up in the reported error, so it removes ability to properly debug things.

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Aug 13, 2024
@github-actions github-actions bot added the Package: browser Issues related to the Sentry Browser SDK label Aug 13, 2024
@lforst
Copy link
Member

lforst commented Aug 13, 2024

Hi, we'll backlog this. Thanks for reporting!

@lforst
Copy link
Member

lforst commented Aug 14, 2024

Related #7051

@obecny obecny self-assigned this Oct 15, 2024
@obecny obecny removed their assignment Nov 5, 2024
@linear linear bot added the Migrated label Jan 9, 2025
@s1gr1d
Copy link
Member

s1gr1d commented Jan 15, 2025

Can be closed as this was fixed here: #9914

@s1gr1d s1gr1d closed this as completed Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Migrated Package: browser Issues related to the Sentry Browser SDK
Projects
Archived in project
Development

No branches or pull requests

4 participants