Skip to content

Multiple tracking.enable$argument_0.onUnhandled error reported #3185

Closed

Description

@elmotan95

OS:

  • Windows
  • MacOS
  • Linux

Platform:

  • iOS
  • Android

SDK:

  • @sentry/react-native (>= 1.0.0)
  • react-native-sentry (<= 0.43.2)

SDK version: 5.5.0

react-native version: 0.69.10

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:

[Link to issue]

Configuration:

(@sentry/react-native)

  Sentry.init({
    dsn: 'redacted',
    enableAutoSessionTracking: true,
    environment: config.environment,

    ignoreErrors: [
      // Axios throw error from createError.js, please see useFetch for error log
      /Request\sfailed\swith\sstatus\scode.*/,
      // react-native-fingerprint-scanner
      /.*biometric.*/,
      // appsflyer
      /.*inapps\.appsflyer\.com.*/,
      /.*com\.appsflyer\.sdk\.network.*/,
    ],

    integrations: [
      new Sentry.ReactNativeTracing({
        enableUserInteractionTracing: true,
        routingInstrumentation,
        shouldCreateSpanForRequest: url => {
          const urlRedacted = /redacted/;
          const urlLocalhost = /localhost/;

          return !url.match(urlRedacted) && !url.match(urlLocalhost);
        },
        // ... other options
      }),
    ],

    sampleRate: 0.2,
    // Sessions close after app is 10 seconds in the background.
    sessionTrackingIntervalMillis: 10000,
    tracesSampleRate: 0.2,
  });

I have following issue:

[Description]

I saw issue being logged on Sentry that related to error reporting. Not sure what caused this issues.

tracking.enable$argument_0.onUnhandled


image

Actual result:

[Actual result]

Expected result:

No issues related to sentry reported

Activity

  1. moved this to Waiting for: Product Owner in GitHub Issues with 👀on Jul 13, 2023
  2. krystofwoldrich commented on Jul 13, 2023

    @krystofwoldrich
    Contributor

    Hi,
    thank you for the message,
    could you share more about the error, are there any breadcrumbs, are there more frames in the stack trace?

  3. isinuyk commented on Jul 15, 2023

    @isinuyk

    @krystofwoldrich @elmotan95
    Got the same problem on the newly released version of the app.
    For me, it is IOS only.

    "@sentry/react-native": "^5.4.1",
    "react-native": "0.71.7",

  4. krystofwoldrich commented on Jul 17, 2023

    @krystofwoldrich
    Contributor

    @isinuyk Thank you for the information, are you able to reproduce it locally, from the message I assume not, but I want to double-check?

  5. isinuyk commented on Jul 17, 2023

    @isinuyk

    @isinuyk Thank you for the information, are you able to reproduce it locally, from the message I assume not, but I want to double-check?

    No. I'm not able to reproduce it in debug mode. Only happens on the release version of the app;

  6. elmotan95 commented on Jul 18, 2023

    @elmotan95
    Author

    Hi, thank you for the message, could you share more about the error, are there any breadcrumbs, are there more frames in the stack trace?

    Nope. Data form breadcrumbs does not provide any relevant information (it's only API call with status 200 and screen name). And it does not happened on development apps.

  7. krystofwoldrich commented on Jul 19, 2023

    @krystofwoldrich
    Contributor

    @isinuyk Since you mentioned it's iOS only, could it be incorrect source maps causing the issue, are your other iOS JS errors source mapped correctly?

  8. isinuyk commented on Jul 19, 2023

    @isinuyk

    @isinuyk Since you mentioned it's iOS only, could it be incorrect source maps causing the issue, are your other iOS JS errors source mapped correctly?

    I don't think so. It is an example of another issue within the same release which has the correct source map

  9. 70 remaining items

  10. moved this to Waiting for: Product Owner in GitHub Issues with 👀on Nov 17, 2023
  11. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀on Nov 17, 2023
  12. birgernass commented on Jan 8, 2024

    @birgernass

    @savv were you able to get to the bottom of the Error: 1 issue? We see these events very frequently since upgrading to 5.15.x from a 5 alpha version.

  13. rodolfoBee commented on Jul 10, 2024

    @rodolfoBee
    Member

    Reopening issue as users are getting these reports in the newest versions of the SDK. The issue does not seem to be caused by the SDK, it is simply being reported by it.

    @krystofwoldrich can you please confirm it from the Mobile SDK team side?

  14. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on Jul 10, 2024
  15. ts-ign0re commented on Jul 10, 2024

    @ts-ign0re

    If you encounter this problem, try to find the following line in your code or in the code of the libraries you use

    return Promise.reject();

    my case was due to the similar use of Promise, which caused onUnhandled

    This is not a Sentry bug, however Sentry does not handle Promise correctly and does not indicate in which line the unhandled promise occurred

  16. krystofwoldrich commented on Jul 11, 2024

    @krystofwoldrich
    Contributor

    @rodolfoBee I can confirm, this is not an issue caused by the SDK. The SDK just captures a Promise rejection without any additional information, without a stack trace attached.

    This can happen for example when Promise.reject() is called without an error instance. Like @ts-ign0re mentioned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions