Help with logging for Failed to fetch errors. #13032
AlastairTaft
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I get a lot of failed to fetch errors. What I think happens when a request fails due to a poor network connection is Sentry will log that network error, the act of logging that network error causes another failed to fetch error. I think Sentry must store all these errors up locally so when the user eventually restores their connection my logs get bamboozled with thousands of Failed to fetch errors, instantly depleting my error capacity.
I'm adding work arounds in my code to not log errors that are a result of not being able to report an error. But here's a little snippit that will show you the URL that failed to fetch in the Sentry error logs.
Logs will now show 'Failed to fetch (https://a-url-that-could-not-be.reached)', giving you some visibility of what's going on.
Beta Was this translation helpful? Give feedback.
All reactions