Sentry-javascript: React's minified errors caught in errors boundary are not reported when whitelistUrls is set

Created on 13 Aug 2019  路  5Comments  路  Source: getsentry/sentry-javascript

Package + Version

  • [x] @sentry/browser
  • [ ] @sentry/node
  • [ ] raven-js
  • [ ] raven-node _(raven for node)_
  • [ ] other:

Version:

5.6.1

Description

The errors Minified React error... visit https://reactjs.org/... caught in react's error boundaries are nor reported because of being dropped due to not matched by whitelistUrls option (and boundary setup like https://docs.sentry.io/platforms/javascript/react/#error-boundaries). When enabling debug mode following warning is visible in the console:

Sentry Logger [Warn]: Event dropped due to not being matched by `whitelistUrls` option.
Event: Invariant Violation: Minified React error #31; visit https://reactjs.org/docs/error-decoder.html?invariant=31&args[]=object%20with%20keys%20%7B%24%24typeof%2C%20render%2C%20displayName%2C%20attrs%2C%20componentStyle%2C%20foldedComponentIds%2C%20styledComponentId%2C%20tar....
Url: https://reactjs.org/docs/error-decoder.html?invariant=31&args[]=object%20with%20keys%20%7B%24%24typeof%2C%20render%2C%20displayName%2C%20attrs%2C%20componentStyle%2C%20foldedComponentIds%2C%20styledComponentId%2C%20target%2C%20withComponent%2C%20toString%7D&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings.

Detected URL is the react's page...

Confirmed In Progress Bug

All 5 comments

Workaround...

whitelistUrls: [...(options.whitelistUrls || []), 'reactjs.org'],

Thanks for reporting the issue. Fix pending here https://github.com/getsentry/sentry-javascript/pull/2204

Released in 5.6.2

Dzi臋ki @kamilogorek ;)

@darkowic nie ma sprawy :)

Was this page helpful?
0 / 5 - 0 ratings