[0] at end of XHR message in breadcrumbs


#1

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?


#2

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:


#3

This will also happen with a cancelled request.


#4

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.