RNSentry.captureEnvelope got 3 arguments, expected 4
See original GitHub issueOS:
- Windows
- MacOS
- Linux
Platform:
- iOS
- Android
SDK:
-
@sentry/react-native
(>= 1.0.0) -
react-native-sentry
(<= 0.43.2)
SDK version: 4.5.0
react-native
version: 0.69.4
Are you using Expo?
- Yes
- No
Are you using sentry.io or on-premise?
- sentry.io (SaaS)
- on-premise
If you are using sentry.io, please post a link to your issue so we can take a look:
Configuration:
const routingInstrumentation = new Sentry.Native.ReactNavigationInstrumentation();
Sentry.init({
dsn: SENTRY_DSN,
enableInExpoDevelopment: SENTRY_ENABLE_IN_DEV,
debug: SENTRY_DEBUG,
environment: process.env.NODE_ENV,
tracesSampleRate: 0.2,
integrations: [
new Sentry.Native.ReactNativeTracing({
routingInstrumentation,
}),
],
});
I have following issue:
Upgrading to version 5.0.0-alpha.4
or 4.5.0
makes the app crash
Steps to reproduce:
- Install Sentry
- Make the App Crash
Actual result:
FATAL EXCEPTION: mqt_native_modules
Process: com.company.myapp, PID: 13737
com.facebook.react.bridge.NativeArgumentsParseException: RNSentry.captureEnvelope got 3 arguments, expected 4
at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:349)
at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:188)
at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:27)
at android.os.Looper.loop(Looper.java:223)
at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:228)
at java.lang.Thread.run(Thread.java:923)
Expected result:
- Sentry does not crash
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:14 (7 by maintainers)
Top Results From Across the Web
RNSentry.captureEnvelope got 3 arguments, expected 4 ...
Summary. Hello i have this kind of error in Sentry: NativeArgumentsParseException: RNSentry.captureEnvelope got 3 arguments, expected 4
Read more >getting error of "got 3 arguments expected 5" while using react ...
While using react-native-zoom-bridge getting the error of "got 3 arguments expected 5" in the android simulator. Any idea?
Read more >@sentry/react-native - npm
Official Sentry SDK for react-native. Latest version: 4.12.0, last published: 12 days ago. Start using @sentry/react-native in your project ...
Read more >Issues - sentry-react-native - Geeks
Official Sentry SDK for React-Native - Sentry. ... captureException(error) results in RNSentry. ... RNSentry.captureEnvelope got 3 arguments, expected 4.
Read more >sentry-expo - bytemeta
Updated 4 weeks ago ... NativeArgumentsParseException: RNSentry.captureEnvelope got 3 arguments, expected 4. juicemia.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@pdavid0 likely a cache issue, clean
node_modules
and clean caches, we have tests running on CI so I don’t think this is a bug at all.You can try
--clear-cache
, docs, but I personally don’t use expo so, I don’t know.I clean the build using Android Studio and Xcode.