OS:
_Platform:_
Output of node -v && npm -v && npm ls --prod --depth=0
v9.9.0
5.6.0
[email protected] /Users/xxxxxxx/xxxxxxxx
├── @sentry/[email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]
Config:
Sentry.config(Config.SENTRY_DSN).install();
Sentry.setRelease(`${DeviceInfo.getBundleId()}-${DeviceInfo.getVersion()}`);
Sentry.setDist(`${DeviceInfo.getBuildNumber()}`);
I have following issue:
Now I know there's a handful of issues by a similar title but hear me out! haha. I've crawled through and confirmed things (I know of) which need to match are indeed matching. So now I'm a bit stumped.
I'm expecting a symbolicated error report but am not seeing one.
More info:
dist # 102186 ~/index.android.bundle artifact exists (see screenshots below)xx.xx.xx-1.0.2 matches release name in URL of Artifacts page. Indeed, the second screenshot below is the page linked via the "release tag" (i) button on the first screenshot.Don't want to share my client here in here but I'm happy to link you to our Sentry org/relevant error reports in a private channel. Let me know how is best to do that.
Thanks!!


Steps to reproduce:
./gradlew installProductionReleaseActual result:
"There was 1 error encountered while processing this event"
"Source code was not found for app://index.android.bundle"
Expected result:
Hey, thanks for this detailed bug report 👍
Can you please send me a link to [email protected] will check what's going on there.
At first glance, it seems you did everything correctly.
Sorry for the delay.
2 things I've noticed while looking at your events.
It seems something is wrong with the native integration, you can see this by checking the SDK section at the bottom, it says raven-js instead of sentry-react-native.
This indicates that somehow the native integration in android isn't running.
Check your entryfile for:
https://github.com/getsentry/react-native-sentry/issues/6#issuecomment-368777938
For some reason, the frames say app:// instead of app:/// (with 3 /).
I am not sure if the is a bug in our lib or if you change the frames somehow.
The rest looks fine.
Please report back with your findings :)
@HazAT oh wow, I'm sorry!! Adding the package to MainApplication seems to have fixed it, we do have a handful of native packages but I'm not sure how I missed that.
I think fixing the native integration seemed to fix the stacktrace frames (now preceded by 3 /) and stack traces are now symbolicating properly.
Thanks for your help! Going to close this.
I have the same problem,sourcemap upload success ,but there is a error tip:

how to fix it ?
I'm having the same issue as @pinguo-zhouwei.
In the SDK section, it says sentry-react-native with 0.39.1

Make sure source maps are uploaded as ~/index.andoird.bundle and ~/index.andoird.bundle.map
and also the dist and release tag of the event match exactly the name of where you uploaded the artifacts to.
@HazAT But doesn't the react-native-sentry lib is already suppose to do that? We don't have much control on what is send during the ./gradlew assembleRelease don't we?
Make sure source maps are uploaded as
~/index.andoird.bundleand~/index.andoird.bundle.map
and also thedistandreleasetag of the event match exactly the name of where you uploaded the artifacts to.
I was facing this issue since a long time. finally got it working.
I had followed all the instructions correctly but still wasn't able to fix it. finally realised I was not setting 'dist' tag in the source map
Most helpful comment
I have the same problem,sourcemap upload success ,but there is a error tip:

how to fix it ?