-
-
Notifications
You must be signed in to change notification settings - Fork 338
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
UnexpectedNativeTypeException: Value for message cannot be cast from ReadableNativeMap to String #652
Comments
OK, I know how to fix this error but I want to understand how this happens. The error message clearly says that the value of Edit: |
@HazAT I removed every call to Sentry in my Application and replaced the init call with just the dsn. Still the same error |
I am really curious, the fix is easy, I need to safeguard it like here: sentry-react-native/android/src/main/java/io/sentry/RNSentryModule.java Lines 180 to 192 in 32c283b
But is it possible for you to inspect the value of |
So it was in fact super interesting what caused this error but totally unrelated to anything discussed here: |
what is the fix....? |
OS:
Platform:
SDK:
@sentry/react-native
react-native-sentry
react-native
version: 0.60.5Init Code:
I have following issue:
As soon as I call init on the Sentry SDK my app crashes with
UnexpectedNativeTypeException: Value for message cannot be cast from ReadableNativeMap to String
. Though this only happens on Android and not on iOS.This issue was reported in the beta as well: #612 (comment)
and #651 also seems related:
react-native info
screenshot:
stacktrace in logcat:
Steps to reproduce:
react-native 0.60.5
with@sentry/react-native 1.0.4
Actual result:
Expected result:
The text was updated successfully, but these errors were encountered: