getsentry / sentry-react-native

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

After installing Sentry with the wizard the events are not being reported #4079

Open CH-SebastianEscalona opened 6 days ago

CH-SebastianEscalona commented 6 days ago

OS:

Platform:

SDK:

SDK version: 5.31.1

react-native version: 0.74.4

Are you using Expo?

Are you using sentry.io or on-premise?


I have the following issue:

[Description]

Steps to reproduce:

Actual result:

Not seeing any events on the sentry dashboard

krystofwoldrich commented 5 days ago

Hi @CH-SebastianEscalona, thank you for the message,

what version of on-premise Sentry are you using?

Is the DSN correctly set by the wizard and pointing to your on-premise instance?

Is this the code snippet you are using to test the error reporting?

<Button title='Try!' onPress={ () => { Sentry.captureException(new Error('First error')) }}/>

Could you set debug: true in the Sentry.init and check if there are any errors in the JS console or Logcat or iOS Console?

CH-SebastianEscalona commented 5 days ago

Yes, that's the code snippet I'm using. The version of the sentry is the 9.0.0. And yes the DSN is correctly set. The init doesn't throw any logs is set on the App.tsx

krystofwoldrich commented 4 days ago

Hi @CH-SebastianEscalona, thank you,

can you share your Sentry.init, add debug: true and share the logs from JS console, Logcat and iOS Console?

CH-SebastianEscalona commented 1 day ago

Hi! @krystofwoldrich , sorry for the delay. Here are the logs thrown with debug: true

Image

My Sentry init is currently like this

Sentry.init({
  dsn: 'htttps://....',
  debug: true,
});
mauripavan commented 16 hours ago

Hi, facing exactly same issue migrating from sentry.io to self-hosted. Any update on that?