Sometimes in event breadcrumbs we see “[0]”. Here’s an example:
I think we usually see HTTP response codes in this spot. Does 0=200?
Sometimes in event breadcrumbs we see “[0]”. Here’s an example:
I think we usually see HTTP response codes in this spot. Does 0=200?
It is worth noting that browsers report a status of 0 in case of XMLHttpRequest errors too.
For example, XMLHttpRequests that fail CORS can trigger a status code of 0:
This will also happen with a cancelled request.
Yeah @blocka, I think that’s the most common case it happens for us;
we have an app in Salesforce that’s loaded in an iFrame. Our customers open a page in salesforce and navigate away again before our app is fully loaded and this triggers quite some [0]
logs.
I wonder if there’s a way not to log these entries.
Anyone has found a way to not log these entries ?
@benvinegar Any update on this one? Is there a way to ignore this error?
You can write a callback that inspects the event payload for this breadcrumb and remove it: https://docs.sentry.io/platforms/javascript/#filter-events--custom-logic
But we don’t consider it a “bug” that these breadcrumbs appear. It can be valuable to understand if a request was canceled leading up to an error.