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

Linked errors in Sentry js browser sdk are given incorrect title in Sentry #60194

Closed
johndoherty opened this issue Nov 17, 2023 · 3 comments
Closed
Labels
Product Area: Issues Sync: Jira apply to auto-create a Jira shadow ticket

Comments

@johndoherty
Copy link

Environment

SaaS (https://sentry.io/)

Steps to Reproduce

Create a linked error in sentry in the browser:

try {
  // ...
} catch (e) {
    const fetchError = new Error(`Failed to fetch`);
    fetchError.cause = e;
    Sentry.captureException(fetchError);
}

Previously the title of the error in sentry would be: Failed to fetch, but now the title is whatever is in e.message.

Expected Result

Title of error in Sentry UI is the error thrown, not the message of the error in the cause field. In the example above it should be "Failed to fetch", instead of e.message.

Actual Result

Unfortunately I can't share what we see in our sentry UI publicly, but the title of the error that we see is e.message

Product Area

Issues

Link

No response

DSN

No response

Version

No response

@getsantry
Copy link
Contributor

getsantry bot commented Nov 17, 2023

Assigning to @getsentry/support for routing ⏲️

@getsantry
Copy link
Contributor

getsantry bot commented Nov 17, 2023

Routing to @getsentry/product-owners-issues for triage ⏲️

@lobsterkatie
Copy link
Member

lobsterkatie commented Nov 18, 2023

Hi, @johndoherty - thanks for reporting! This is actually the same issue as #59679, so I'm going to close this in favor of that, since a bunch of conversation has already happened there. Feel free to comment if you have stuff to add. (Actually, I have a question for you, but I'm going to ask it over there so we can keep discussion in one place.)

@irodrigues-git irodrigues-git added the Sync: Jira apply to auto-create a Jira shadow ticket label Nov 22, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Dec 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Product Area: Issues Sync: Jira apply to auto-create a Jira shadow ticket
Projects
Archived in project
Development

No branches or pull requests

4 participants