Skip to content

originalException missing from beforeSend hint when using React ErrorBoundry #3987

@robcrocombe

Description

@robcrocombe

Package + Version

  • @sentry/browser
  • @sentry/node
  • raven-js
  • raven-node (raven for node)
  • other: @sentry/react

Version:

6.12.0

Description

The docs describe a way of filtering events using the hint.originalException object. However using the React library with included ErrorBoundry component the hint object only contains { event_id: 'xxxx' } and no originalException or syntheticException etc.

I've done some digging and I think (not certain, only trying to read the lib code) that this new addition #3532 (React 17 error boundaries) has swallowed the original error. I tried skipping this section of the code and the original exception came back on the hint inside beforeSend.

Please can something be done to restore this functionality, or am I doing something wrong? Thanks

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions