-
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
Unable to send test event to Sentry from React Native using Expo #294
Comments
I originally opened this issue with Sentry and they recommended I ask for help here. |
I'm also having issues with sentry-expo since SDK 46. Errors are not delivered to sentry. This happens also for standalone app builds. What is weird is that downgrading expo-sentry to 4.2.0 is working for me and also some other devs reported this here: #243 Update: |
@aeife I have the |
@aeife downgrading like you suggested didn't fix it. All it did was make the app endlessly error with logs like this:
|
The error log If you are using RN >= 0.69, try to check this out: https://docs.sentry.io/platforms/react-native/troubleshooting/#react-native-069-and-higher |
I am getting this error too on Whenever I execute Sentry.Native.captureException(new Error("Sentry test..."); I get the
I am on android and I applied the workaround linked above in the comments... Any way to make it work again? |
I posted a solution that works for me here: #285 (comment) |
Above reply did not work, but this does: #285 (comment) I also had some typescript issues until I removed @sentry/react-native from my package.json and used it as a transient dependency through [email protected] |
Downgrade sentry-expo to "~4.2.0" and expo to "~46.0.17". It works fine for me |
Did you find any solution for this? |
Any update here? I mean without downgrade the versions |
I found the docs said
So I had to actually do an EAS build with my test error, download the binary, drop it into the simulator, and then trigger the error. Then it actually showed up in Sentry. I think the |
This issue is stale because it has been open for 60 days with no activity. If there is no activity in the next 7 days, the issue will be closed. |
This issue was closed because it has been inactive for 7 days since being marked as stale. Please open a new issue if you believe you are encountering a related problem. |
Leaving my context here jic anyone else is facing the same issue. I'm running managed Expo 47 (no bare/eject; just vanilla Expo). I had the same issue many have mentioned that events weren't reaching my Sentry (SaaS; not self-hosted) instance. Dependencies
Caveats:
UpdateUpgrading sentry-expo and @sentry/react-native worked after building.
This requires installing @sentry/react-native as a dependency and building again. |
Summary
Followed the documentation here after direct usage of
@sentry/react-native
stopped working in my Expo app.I stripped everything and followed that documentation to get
sentry-expo
installed and working. I'm just trying to test if an event gets to Sentry correctly which is why I have it enabled in development.When I load the app with the above configuration I see the following in the logs:
When I set
enableNative: false
I see the following logs (ignoreTESTING SENTRY FROM APP
that's just my test error):In either case, I don't see the errors actually making it to Sentry.
I tested the DSN itself using
sentry-cli
and messages show up in that case, so that's ruled out.Managed or bare workflow? If you have
ios/
orandroid/
directories in your project, the answer is bare!managed
What platform(s) does this occur on?
iOS
SDK Version (managed workflow only)
[email protected]
Environment
Reproducible demo or steps to reproduce from a blank project
npx create-expo-app sentry-expo-test
cd sentry-expo-test
npx expo install expo-application expo-constants expo-device expo-updates @sentry/react-native
npm run start
package.json
:App.js
:The text was updated successfully, but these errors were encountered: