#How to use beforeSend to filter abort errors

8 messages · Page 1 of 1 (latest)

solar flume
#

Hi there!

I am currently seeing abort errors being logged to sentry which I want to ignore. I attached breadcrumbs of the console and exception which I want to start ignoring. How can I use "beforeSend" to prevent them from being sent to sentry?

For more context: I believe the errors may be coming from a node module we have installed but I'm not sure how I can confirm the source of the log (whether it be from our implementation of the node module or the node module itself). Also I cannot use thirdPartyErrorFilterIntegration yet because we aren't using a sentry sdk we are loading sentry via the cdn link.

solar flume
#

How to use beforeSend to filter abort errors

shell fjord
#

you can use ignoreErrors: ["AbortError"] instead of before send

solar flume
#

Oh ok thank you very much!

#

To use ignoreErrors, does the string used need to match the title of the sentry error or the description?

#

It looks like with the suggestion a partial match of the description suffices?

shell fjord
#

also, my initial suggestion might not work as I used the event type, not message. you can add "fetch is aborted" or simply "aborted".