-
-
Notifications
You must be signed in to change notification settings - Fork 343
RNSentry.captureEnvelope got 3 arguments, expected 4 #2505
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
Comments
Hi, we made a change in our native layer (#2463) and this error happens, when the native layer is not rebuild after the upgrade. Clean build should solve this. Let me know if it helped. |
@krystofwoldrich thanks, it seems to work in debug mode, but the error first came through a CI build, which should be clean by default. |
Spoke too soon, a clean build with version |
downgrading to cd android && ./gradlew clean && cd ..
yarn react-native run-android |
I have suspicion that when you upgrade the native java code doesn't get recompiled. That would explained why downgrading to |
If the problem persist could you share a repo or send sample which doesn't build, so I can try to reproduce it? |
Will do! If I can't make it work by tomorrow .. it will probably have to wait until Monday. I've looked at the code it downloads locally for // build.gradle
dependencies {
implementation 'com.facebook.react:react-native:+'
api 'io.sentry:sentry-android:6.4.2'
} // RNSentryModule.java
@ReactMethod
public void captureEnvelope(ReadableArray rawBytes, ReadableMap options, Promise promise) { So im not sure where's the issue |
@pdavid0 likely a cache issue, clean |
#2505 (comment) the code here is correct, but based on the error your app is not running it. |
Closing as I couldn't reproduce in a clean App ... Thanks for the support |
4.6.0 have this issue on app launch |
Hi, make sure you do a clean build since this is caused by using a cached native layer build from previous versions. |
This happened on production build |
You can try I clean the build using Android Studio and Xcode. |
I'm having this also. Cleaning doesn't seem to help. Not using expo though. Crashing on startup on android 14. |
Uh oh!
There was an error while loading. Please reload this page.
OS:
Platform:
SDK:
@sentry/react-native
(>= 1.0.0)react-native-sentry
(<= 0.43.2)SDK version: 4.5.0
react-native
version: 0.69.4Are you using Expo?
Are you using sentry.io or on-premise?
If you are using sentry.io, please post a link to your issue so we can take a look:
https://sentry.io/organizations/inspectify/issues/3629448282/?project=5740339&query=is%3Aunresolved&statsPeriod=1h
Configuration:
I have following issue:
Upgrading to version
5.0.0-alpha.4
or4.5.0
makes the app crashSteps to reproduce:
Actual result:
Expected result:
The text was updated successfully, but these errors were encountered: