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

Always attach some URL/target data point to fetch/xhr/request errors #13168

Open
lforst opened this issue Aug 2, 2024 · 0 comments
Open

Always attach some URL/target data point to fetch/xhr/request errors #13168

lforst opened this issue Aug 2, 2024 · 0 comments
Labels
Feature: Errors Package: browser Issues related to the Sentry Browser SDK

Comments

@lforst
Copy link
Member

lforst commented Aug 2, 2024

Description

The Sentry Chief Product Officer has brought to our attention that Fetch errors sometimes suck. (example that will expire in 90 days)

Image

We technically have a stack trace here but sourcemaps are broken so the user has basically no idea what fetch request failed. It's very hard to gauge from breadcrumbs what exact request failed.

Side note, the fetch call that failed looked like fetch(""). We render this as in the product, you guessed it "". Which is crap because it actually means the request went to the current route. We should at least coerce that string to URL(fetchTarget, window.location.href).toString() in the SDK.

Image

@AbhiPrasad AbhiPrasad added Feature: Errors Package: browser Issues related to the Sentry Browser SDK labels Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature: Errors Package: browser Issues related to the Sentry Browser SDK
Projects
None yet
Development

No branches or pull requests

2 participants