getsentry / sentry-react-native

Official Sentry SDK for React Native
https://sentry.io
MIT License
1.57k stars 337 forks source link

Error events are not recorded in Sentry dashboard #4221

Open jenipharachel opened 1 day ago

jenipharachel commented 1 day ago

What React Native libraries do you use?

React Navigation

Are you using sentry.io or on-premise?

on-premise (Self-Hosted)

@sentry/react-native SDK Version

5.33.1

How does your development environment look like?

info OS: MacOS Node: v16.9.0 Yarn: 1.22.19 react: "17.0.2" react-native: "0.67.2" hermesEnabled: false newArchEnabled: false

Sentry.init()

Sentry.init({
  dsn: "",
  // Set tracesSampleRate to 1.0 to capture 100% of transactions for performance monitoring.
  // We recommend adjusting this value in production.
  debug: true,
  tracesSampleRate: 1.0,
  release: release + '@' + VersionNumber.appVersion + '+' + VersionNumber.buildVersion,
})

Steps to Reproduce

  1. Built the app in iOS and android.
  2. Crashed the app with "throw new Error("My first Sentry error!");" or "Sentry.nativeCrash();"
  3. Crash occured but was not recorded in Sentry Dashboard. Production bugs are also not recorded in the Sentry Dashboard.

Expected Result

Crashes to be recorded in Sentry

Actual Result

Crash occured but was not recorded in Sentry Dashboard. Production bugs are also not recorded in the Sentry Dashboard.

rwachtler commented 7 hours ago

Thank you for reaching out here @jenipharachel ! Couple of points to help you resolve this issue faster: