"TypeError: Failed to fetch" reported over and overe

We have Sentry in the browser capturing any errors in our website.

We see TypeError: Failed to fetch logged tens of thousands of times to thousands of users.

We see no stacktrace, or an indication of where they originate.

They happen on a variety of browsers, but mostly mobile ones, Android, iPhone etc.

Not tied to a specific version.

Many of the events logged have a latency warning, ie, they were only sent to Sentry some 12 hours after being captured.

I understand this error is from the fetch API, which we use extensively on the website, and that this error is caused nostly by the user navigating away from the site when a fetch call is in progress, and thus it’s being terminated.

My question is, since this appears to be a “normal” routine error thats safe to ignore, what have other people on Sentry done to mitigate it.

1 Like