Skip to content

Unhandled promises are not logged at all (iOS and Android) #1077

@lukewlms

Description

@lukewlms

Platform:

  • iOS

SDK:

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

SDK version: "@sentry/react-native": "^1.7.2",

react-native version: "react-native": "^0.63.2",

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:

No issue was created

Configuration:

(@sentry/react-native)

Sentry.init({
  dsn: 'https://...@sentry.io/...'
  // no extra options
});

I have following issue:

Normal exceptions are logged to Sentry.io just fine, but unhandled promises are not logged at all. My understanding is that this should happen by default. I do get a yellow box showing the unhandled exception but it seems that Sentry never sees it.

This repros on both Android and iOS.

Steps to reproduce:

  1. Install sentry with minimal config
  2. Generate an unhandled promise rejection

Actual result:

Yellow box appears but no error logged to sentry.io

image

Expected result:

Unhandled promise rejections are logged to sentry.io

Metadata

Metadata

Assignees

Labels

No labels
No labels
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions