-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sentry is not sending global errors #32
Comments
errors in development are caught by a global error handler in expo then passed along to the original handler: https://github.com/expo/expo/blob/deb7e9497ed09f5e1f5ca3409f2b6d020d15646e/packages/expo/src/launch/RootErrorBoundary.tsx#L21-L52 if you can post an example project with this problem i'd be happy to look! |
@wamphlett, are you sure that your error isn't being caught (and not being rethrown) by a higher level in your application? Just a thought because that's what was happening in my case. |
@brentvatne I've got one: https://github.com/theliturgists/app/pull/159 Nothing shows up in Sentry. Not sure if there's a better way to test that I've hooked things up correctly, but this seems like a pretty simple error that ought to be reported. (It causes a redbox in development) |
FWIW, |
Hmm. Tried again with my dev server running in production, and Sentry received the error this time (albeit after a delay). I guess I'll chalk this up to me not realizing that no errors are reported if they result in a dev redbox (per getsentry/sentry-react-native#6). (And with me not realizing that sentry-expo is a thin wrapper around react-native-sentry) |
I am having problems with global errors not getting sent to Sentry in development. This has been raised before in #23 however it was never officially answered and I feel there are still people experiencing the same thing. It would be nice to get an offical answer on it.
Is this expected in development, am I missing something, or is there something wrong here?
The text was updated successfully, but these errors were encountered: