Skip to content

Cannot send initial captured error. #5988

@erlipinheiro

Description

@erlipinheiro

What React Native libraries do you use?

Expo Router

Are you using sentry.io or on-premise?

sentry.io (SaS)

Are you using any other error monitoring solution alongside Sentry?

No

Other Error Monitoring Solution Name

No response

@sentry/react-native SDK Version

~6.14.0

How does your development environment look like?

⬇  Place the `npx react-native@latest info` output here. ⬇
System:
  OS: macOS 26.3.1
  CPU: (10) arm64 Apple M4
  Memory: 125.00 MB / 16.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 22.17.1
    path: /Users/erli/.nvm/versions/node/v22.17.1/bin/node
  Yarn: Not Found
  npm:
    version: 11.6.0
    path: /Users/erli/.nvm/versions/node/v22.17.1/bin/npm
  Watchman:
    version: 2025.07.14.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.16.2
    path: /opt/homebrew/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 25.2
      - iOS 26.2
      - macOS 26.2
      - tvOS 26.2
      - visionOS 26.2
      - watchOS 26.2
  Android SDK:
    API Levels:
      - "34"
      - "35"
    Build Tools:
      - 34.0.0
      - 35.0.0
    Android NDK: Not Found
IDEs:
  Android Studio: Not Found
  Xcode:
    version: 26.2/17C52
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 21.0.8
    path: /usr/bin/javac
  Ruby:
    version: 2.6.10
    path: /usr/bin/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 20.1.3
    wanted: latest
  react:
    installed: 19.0.0
    wanted: 19.0.0
  react-native:
    installed: 0.79.6
    wanted: 0.79.6
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: Not found
  newArchEnabled: Not found
iOS:
  hermesEnabled: Not found
  newArchEnabled: false



Sentry.init()

Sentry.init({
dsn: "*******************************************************************************",
integrations: [
Sentry.mobileReplayIntegration(),
navigationIntegration,
],
debug: true,

// Adds more context data to events (IP address, cookies, user, etc.)
// For more information, visit: https://docs.sentry.io/platforms/react-native/data-management/data-collected/
sendDefaultPii: true,


// uncomment the line below to enable Spotlight (https://spotlightjs.com)
// spotlight: __DEV__,

});

Steps to Reproduce

1- start with npx expo start
2- start app, and click in send error.
console.log('tentando enviar.');
try {
throw new Error("Erro teste FORÇADO");
} catch (e) {
Sentry.captureException(e);
}
console.log('Erro de teste lançado');

Expected Result

error in sentry console

Actual Result

error not in sentry console

Metadata

Metadata

Assignees

No fields configured for issues without a type.

Projects

Status

Waiting for: Community

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions