Skip to content

React's minified errors caught in errors boundary are not reported when whitelistUrls is set #2202

Closed

Description

@darkowic

Package + Version

  • @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...

Activity

  1. changed the title [-]React error boundary exceptions are not reported when whitelistUrls is set[/-] [+]React's minified errors caught in errors boundary are not reported when whitelistUrls is set[/+] on Aug 13, 2019
  2. darkowic commented on Aug 13, 2019

    @darkowic
    Author

    Workaround...

    whitelistUrls: [...(options.whitelistUrls || []), 'reactjs.org'],
  3. kamilogorek commented on Aug 14, 2019

    @kamilogorek
    Contributor

    Thanks for reporting the issue. Fix pending here #2204

  4. kamilogorek commented on Aug 19, 2019

    @kamilogorek
    Contributor

    Released in 5.6.2

  5. darkowic commented on Aug 19, 2019

    @darkowic
    Author

    Dzięki @kamilogorek ;)

  6. kamilogorek commented on Aug 19, 2019

    @kamilogorek
    Contributor

    @darkowic nie ma sprawy :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions