Skip to main content

Why is the denyUrls option not filtering issues from frames with app://*?

Updated over a month ago

Issue

I've added app://* to the denyUrls option, but frames that contain app://* are not being filtered.

Applies To

Resolution

Some of the SDKs include RewriteFrames integration automatically, such as React Native and Next.js. This integration changes the stack traces' URL to app://* by default.

The denyUrls option takes a list of regular expressions, or strings, that can match any part of a URL to block them from sending issues to your Sentry project. This option filters events based on the URL on the first frame of the stack trace.

Because denyUrls runs before RewriteFrames, the denyUrlslogic won't match on app://* as this is not part of the frame's original URL. In this case, you must not attempt to match on the app://* part of the frame and use the rest of the frame in the denyUrls list.

Did this answer your question?