question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RNSentry.captureEnvelope got 3 arguments, expected 4

See original GitHub issue

OS:

  • 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:

https://sentry.io/organizations/inspectify/issues/3629448282/?project=5740339&query=is%3Aunresolved&statsPeriod=1h

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:closed
  • Created a year ago
  • Reactions:1
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
marandanetocommented, Sep 30, 2022

@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.

0reactions
krystofwoldrichcommented, Oct 6, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found