Sentry-react-native: 'Source code was not found...' pops with sourcemaps generated successfully

Created on 19 Sep 2018  Â·  17Comments  Â·  Source: getsentry/sentry-react-native

OS:

  • MacOS

_Platform:_

  • iOS
  • Android

I have following issue:

I have sourcemaps generated successfully under Artifacts tab in the same release.

snipaste_2018-09-19_17-44-32

But still got error pops 'Source code was not found for ...',

and the EXCEPTION description are all messy.

snipaste_2018-09-19_17-44-07
snipaste_2018-09-19_17-53-57

I am using Expo in my project, and I followed the instruction https://docs.sentry.io/clients/react-native/expo/ very carefully. I am using TypeScript btw.

🦔react-native-sentry

Most helpful comment

We solved it on our end. It was failing because the sentry workers did not have access to the sourcemap folder on the primary node, so when we uploaded the sourcemap the worker wasn't able to parse it.

"app:///index.delta" means that the crash happened on a test device connected to the test server. I would not expect the stack traces to be correct in that case.

All 17 comments

+1 on this.

Please make sure that the
release and dist tag of the event, matches exactly with the release & dist of the artifact in the release section.
You can find the actual release name in the url when you click on artifacts.
The dist can be found beside the file name.

@HazAT Thanks for replying, I checked my tags, it's not showing the dist tag at all on my event, under the artifact the dist tag says 'none'. The release tag matches though.

@jaychenjun Can you post a link to an event so I can take a look please?

I'm experiencing the same issue.

Distribution is listed as NONE next to the artefacts, and there is no apparent dist next to the filename on the event.

I'm finding the same thing happening, and am not sure which end it's on (sentry or expo).

My artefacts are uploaded fine and appear to have source maps correctly mapped to the bundles:

| Name                  | Distribution | Source Map       | Size   |
+-----------------------+--------------+------------------+--------+
| ~/main.android.bundle |              | main.android.map | 2.40MB |
| ~/main.android.map    |              |                  | 8.26MB |
| ~/main.ios.bundle     |              | main.ios.map     | 2.41MB |
| ~/main.ios.map        |              |                  | 8.30MB |
+-----------------------+--------------+------------------+--------+

This is correctly shown under the release for which I expect these to have been uploaded.

When an issue is received for this release, it correctly shows in Sentry:
image

However the actual issue shows this:
image

With the non-sourcemapped stacktrace:
image

+1 on this,
I am facing the same problem.

I uploaded sourcemap files with sentry cli, and distribution was specified. I can see it from release artifacts list. but the actual issue still showing error:

Source code was not found
Url : app:///index.delta

+1 on this. I have the same problem. Works on sentry's hosted servers, but not on our private server.

Same script, works on ios but showing error on android:

Source code was not found: "url: app:///index.delta"

We solved it on our end. It was failing because the sentry workers did not have access to the sourcemap folder on the primary node, so when we uploaded the sourcemap the worker wasn't able to parse it.

"app:///index.delta" means that the crash happened on a test device connected to the test server. I would not expect the stack traces to be correct in that case.

@shortcarver I think that's right here. Is there anything special about your on-prem setup you had to do? We've got S3 configured and artefacts are finding their way up fine, but it seems sentry still 404s when it tries to resolve them internally.

I am closing all old issues, please if this is still a problem feel free to revive it.
Also, consider moving to our new SDK @sentry/react-native if it still happens there please open a new issue.

FWIW I think this issue can be potentially caused by invalid filesystem permissions for sourcemaps (for anyone who stumbles upon this in future).

Yes, that was our problem.

On Wed, Sep 4, 2019 at 7:35 PM Luke Tankey notifications@github.com wrote:

FWIW I think this issue can be potentially caused by invalid filesystem
permissions for sourcemaps (for anyone who stumbles upon this in future).

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/getsentry/sentry-react-native/issues/481?email_source=notifications&email_token=ABBJYAC522JJNZ456CFZFN3QIBH53A5CNFSM4FV7JNV2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD55N4QA#issuecomment-528145984,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABBJYAFHBULTIGLM4F62XKTQIBH53ANCNFSM4FV7JNVQ
.

Same script, works on ios but showing error on android:

Source code was not found: "url: app:///index.delta"

same here.

On iOS:

Source code was not found
Url app:///main.jsbundle

production environment


react native 0.60.4
@sentry/react-native 1.0.9

Was this page helpful?
0 / 5 - 0 ratings

Related issues

KevinColemanInc picture KevinColemanInc  Â·  3Comments

KAMEDAkyosuke picture KAMEDAkyosuke  Â·  3Comments

sercanov picture sercanov  Â·  3Comments

juhaelee picture juhaelee  Â·  3Comments

kenobi91 picture kenobi91  Â·  3Comments