Is it possible to get the URL of the most recent breadcrumb in the beforeSend( ) callback?
I’m seeing lots of errors with the title TypeError: Failed to fetch
.
Other forum posts suggest to add that error string to the ignoreErrors
attribute in Sentry.init( ).
It seems like that URL is the one which can’t be fetched.
If I can get that URL, I’m thinking of creating a whitelist of URLs to ignore when the TypeError occurs. And in the beforeSend( ), I will check if the URL is in the whitelist, then do not send the error to Sentry.