-
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
Does not work with Expo 46: Native SKD Info retrieval failed #285
Comments
I am going to document my findings here, as this was a confusing journey, and I'd like confirmation that my assumptions (and config) are correct.
With that said, I can't get Expo Go to write any errors to Sentry because of these issues, which is fine, but makes troubleshooting Sentry configs pretty difficult. |
I have the same problem with testing Sentry errors in Expo go on Expo SDK 46. When I set ERROR SentryError: Native Client is not available, can't start on native.
This happens on iOS simulator & iOS phone |
Using Expo SDK 46 with an Android phone. Any ideas ? |
@mirchat the only workaround I found was to turn Sentry off for development, which suppresses the warning. This means that I can't really test Sentry using local dev / Expo Go, so I create standalone apps to test the connection. I can see that I'm writing to Sentry now, but I'm still troubleshooting an issue where the source maps aren't being uploaded. Here's my config for development: export const developmentSentryConfig = { |
Could this be related? Expo 46 uses RN 0.69 and it seems that Sentry doesn't work with that version now - there's a fix in See this issue: Anyway, my Sentry logging stopped working - |
Good question. @kbrandwijk did Expo include the workaround stated here: https://docs.sentry.io/platforms/react-native/troubleshooting/#react-native-069-and-higher? Or could this be the root cause of the issue where source maps aren't uploaded? FWIW, I am able to send data to Sentry with the current versions of Expo 46 and Sentry, it just doesn't upload the source maps. @jacoporicare if you're not seeing data, take a look at my config to see if it matches what you have, and make sure that you are using the latest Expo patch and that your @sentry/react-native version is pinned to 4.2.2 (see #281). |
I tested running Expo with the |
Interesting, I was not able to make it work... I already downgraded do Expo 45 and it works like a charm. We are close to a production release so I really needed Sentry working. Fortunately, downgrading was almost effortless.
Fingers crossed to others.
… 7. 9. 2022 v 18:01, Greg ***@***.***>:
Good question. @kbrandwijk did Expo include the workaround stated here: https://docs.sentry.io/platforms/react-native/troubleshooting/#react-native-069-and-higher? Or could this be the root cause of the issue where source maps aren't uploaded?
FWIW, I am able to send data to Sentry with the current versions of Expo 46 and Sentry, it just doesn't upload the source maps.
@jacoporicare if you're not seeing data, take a look at my config to see if it matches what you have, and make sure that you are using the latest Expo patch and that your @sentry/react-native version is pinned to 4.2.2 (see #281).
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.
|
I have a same problem. `Sentry Logger [warn]:, [SdkInfo] Native SDK Info retrieval failed...something could be wrong with your Sentry installation: Sentry Logger [warn]:, [SentryError: Native is disabled] @sentry/react-native": "4.2.2", |
Same problem for me, no warnings in console but nothing in Sentry when capturing exceptions Dependencies
Sentry init
And Im trying to send an error to Sentry like this:
I get no warnings in my console, and nothing on Sentry. This was working on expo sdk 44. Any idea would be helpful. |
We also are experiencing this issue. No events are received by sentry in production using a standalone app since sdk 46 and sentry expo 5. When I was trying to debug it I can in the mentioned issue with the native sdk. I already tried newest sentry-expo version (5.0.3) and newest expo sdk 46 (46.0.16) but sentry only receives error logs when I downgrade. |
@aeife I was just testing capturing events with expo go, and apparently that doesnt work with Expo 46 and sentry-expo |
Yes I think there is no way around that for expo go. Additionally it was not working for me for standalone builds except with sentry-expo 4.2.0. But I just found the issue: I was missing @sentry/react-native as dependency in my package.json file. Added that and created a new standalone build (using now sentry-expo 5 again) and it now works again. So any dev that worked around the issue using the downgrade should probably check that. I'm reading any SDK release post very carefully but I somehow missed the need for this direct dependency and it seems it only became crucial with the latest SDK update. |
I have same issue. Can confirm downgrade to sentry-expo 4.2.0 works in eas build |
Can confirm this is still an issue with Expo 47 Currently running: |
Same for me, I wasn't seeing any error reports in the sentry dashboard until I downgraded sentry-expo For what it's worth, I definitely had @sentry/react-native included in my package.json. Didn't work: Working: |
I found a solution that works for me on iOS after hours of trying out different versions and setups. I'm still testing Android at the time of writing this. Maybe it'll help you too: Versions of packages:
It is VERY important to import Sentry from
For what it's worth, when jumping back and forth between different versions of npm packages I forgot to restart |
This still appears to be an issue with Expo SDK 47.0.8 and sentry-expo 6.0.0 |
This works for me |
Yes, it works with either expo sdk 46 or 47 and sentry-expo 4.2.0 (no explicitly installed version of @sentry/react-native was necessary, as sentry-expo has it as a dependency rather than peerDependency), but only if I force npm install to use legacy peer deps, and ignore the expo doctor warnings. It's not ideal. |
Same issue, not working with sdk 47 and sentry-expo 6.0.0 and @sentry/react-native 4.9.0 |
Works fine on development enviroment but it doesn't work on production. When you open the app in production it crashes with this error |
For what it's worth, I have Sentry working in non-development (meaning apps built using eas build) with the latest libraries
While Sentry does not log in Dev mode, I've found it's easy enough to create a new build using EAS and test that way. My App.json Sentry Config
My Sentry Init Config
Additionally, I learned that hard way that it's better to omit the "release" property from the Sentry config and to let expo-sentry handle that, otherwise releases don't seem to get mapped to sourcemaps correctly. I hope this helps! |
Closing this ticket as I was able to resolve my issues. Apologies to those who are using this to track other issues - please open another ticket if applicable. |
Can confirm this is still an issue with Expo 47 Currently running: Downgrade to sentry-expo: 4.2.0 it is work |
sentry-expo: 4.2.0 does not work on production enviroment |
Maybe we have different configuration ? |
@sergeu90 Are you on a Sentry cloud, or a specific version of sentry self hosted? |
@dotsafe-tech Cloud. |
I can confirm that Expo 47, eas build and [email protected] working great on Sentry Cloud. This is where it finds the subtlety, it does not work on our self-hosted sentry due to the old version we use. |
still facing this issue |
Can confirm this is still an issue.
|
It is working fine for me. |
Native crash reporting is not available in Expo Go, it is only available in standalone builds or development builds. |
Seems to be working for me now. Current dependency versions: "expo": "48.0.0", |
Summary
When building an app with Expo SDK 46 and the recent versions of the dependent libraries, Sentry does not log events, and shows the warnings:
iOS:
WARN Sentry Logger [warn]: [SdkInfo] Native SDK Info retrieval failed...something could be wrong with your Sentry installation:
WARN Sentry Logger [warn]: [SentryError: Native is disabled]
LOG Sentry Logger [log]: Failed to get device context from native: SentryError: Native is disabled
WARN Sentry Logger [warn]: Event was skipped as native SDK is not enabled.
Android:
Sentry Logger [warn]: Event was skipped as native SDK is not enabled.
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?
Android, iOS
SDK Version (managed workflow only)
46.0.9
Environment
expo-env-info 1.0.5 environment info:
System:
OS: Windows 10 10.0.19044
Binaries:
Node: 16.13.1 - C:\Program Files\nodejs\node.EXE
npm: 8.1.2 - C:\Program Files\nodejs\npm.CMD
npmPackages:
expo: ~46.0.9 => 46.0.9
react: 18.0.0 => 18.0.0
react-native: 0.69.5 => 0.69.5
Expo Workflow: managed
Reproducible demo or steps to reproduce from a blank project
A Snack that can repro here: https://snack.expo.dev/@blackline/surprised-kiwi.
Please make sure to update the Sentry config with a working DSN.
Please run the Snack in iOS or Android to reproduce the issue.
When pressing the "Press" button, the Sentry warnings can be observed in the console.
The text was updated successfully, but these errors were encountered: