Skip to main content

[JavaScript] Why do issues with Related Exceptions show the wrong title?

Issue

When an error event shows a Related Exceptions section (linked errors via cause), the issue title uses the cause error instead of the outer error. Different wrapper errors that share the same cause can look identical on the Issues list.

Applies To

  • All SaaS Customers and Self-Hosted Users

  • Issues

  • JavaScript SDK

Symptoms

  • You wrap a cause such as AxiosError in a more specific error (for example Route not found), and the issue title shows AxiosError instead of the wrapper.

  • Different product failures that share the same underlying cause group or title as if they were the same problem.

Resolution

This bug is fixed. Upgrade the JavaScript SDK to version 7.104.0 or later.

  1. Check your installed @sentry/* package version.

  2. If the version is at least 7.46 and below 7.104.0, upgrade to 7.104.0 or later.

  3. Deploy the upgrade, then confirm new events use the outer error for the issue title and grouping.

Affected versions incorrectly marked linked errors as exception groups. Sentry then picked the wrong main_exception_id, so the cause drove the title and grouping instead of the outer error. Background is in the linked exceptions GitHub issue and this engineering explanation. The fix landed in JavaScript SDK 7.104.0.

If you already use 7.104.0 or later and the title still does not match the exception on the event you are viewing, that is a different case. See Why doesn’t the issue title match the exception?.

For how linked cause chains appear in Sentry, see the LinkedErrors integration docs.

Did this answer your question?