You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When for any reason fetching the version.json file fails, for example because the user lost their internet connection, Sentry ends up getting littered with TypeError: Load failed errors.
Wouldn't it make sense to wrap this call to fetch in a try/catch block?
Reproduction
Just a brand new skeleton project will do, with version.pollInterval set up (see #9089 (comment)). Create a build locally, run with npm run preview, and then kill the server. Or with a production site that uses this, turn off your WiFi.
Okay, this is pretty funny. See the linked PR -- clearly we're handling the error and not re-throwing it, but the console is still littered with errors (at least in Chrome). We're handling the fetch failure, but it seems Chrome still reports the network error to the console. @kevinrenskers, does the fix in the PR still send errors to Sentry, or does Sentry (correctly, IMO) ignore the network failures because the fetch error is handled?
Describe the bug
When for any reason fetching the version.json file fails, for example because the user lost their internet connection, Sentry ends up getting littered with
TypeError: Load failed
errors.Wouldn't it make sense to wrap this call to fetch in a try/catch block?
Reproduction
Just a brand new skeleton project will do, with
version.pollInterval
set up (see #9089 (comment)). Create a build locally, run withnpm run preview
, and then kill the server. Or with a production site that uses this, turn off your WiFi.Logs
No response
System Info
Severity
annoyance
Additional Information
No response
The text was updated successfully, but these errors were encountered: