@sentry/browser
@sentry/node
raven-js
raven-node
_(raven for node)_4.5.3
A third-party ad publisher script that we unfortunately are required to serve with our site produces lots of errors. That script is served by a domain different than our website's and included via <script src=''>
. We configured Sentry to whitelist only our website's domain and bundled @sentry/browser
with our site assets via Webpack.
I see that there already is an issue about blacklistUrls not working in Webpack-bundled versions of Sentry. Maybe the underlying issue is also responsible for our problems?
We already tried to re-produce this error but it is not very easy. While doing that we noticed that whitelistingUrls
works in general, as some errors are not passed on to the Sentry hub.
The following traceback is an example from our production site where the offending urban.js
is served from a non-whitelisted domain:
TypeError: undefined is not an object (evaluating 'sizeMapping[position][1]')
at getSizesForViewport(urban.js:1247:51)
at sendSlotSizesToPrebid(urban.js:1138:46)
at refresh(urban.js:1063:38)
at ? (urban.js:953:46)
at _a(../node_modules/@sentry/browser/dist/index.js:3210:1)
You can also have a look at the issue in our Sentry instance for further details.
@jnns can you give 4.6.0
a try? We fixed some filtering issues Today :)
Thanks for putting in the work @kamilogorek . Will try 4.6.0
and report back.
I am closing this for now since this seems to be fixed, report back if it's not :)
This is still happening. I'm using https://browser.sentry-cdn.com/5.5.0/bundle.min.js and the config below. The whitelistUrls even the blacklistUrls doesn't work. Any thoughts why?
<script src="https://browser.sentry-cdn.com/5.5.0/bundle.min.js" crossorigin="anonymous"></script>
Sentry.init({
dsn: '<dsn-number>',
whitelistUrls: '/myRegExPattern/g'
});
whitelistUrls has never worked for me lol, I've tried everything really.
Most helpful comment
This is still happening. I'm using https://browser.sentry-cdn.com/5.5.0/bundle.min.js and the config below. The whitelistUrls even the blacklistUrls doesn't work. Any thoughts why?