Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Source code was not found...' pops with sourcemaps generated successfully #481

Closed
junchenjun opened this issue Sep 19, 2018 · 17 comments
Closed

Comments

@junchenjun
Copy link

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.

@luco
Copy link

luco commented Sep 25, 2018

+1 on this.

@HazAT
Copy link
Member

HazAT commented Sep 28, 2018

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.

@junchenjun
Copy link
Author

@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.

@HazAT
Copy link
Member

HazAT commented Oct 1, 2018

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

@luco
Copy link

luco commented Oct 3, 2018

@ltankey
Copy link

ltankey commented Oct 18, 2018

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.

@ltankey
Copy link

ltankey commented Nov 14, 2018

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

@hgang
Copy link

hgang commented Dec 29, 2018

+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

@shortcarver
Copy link

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

@naytun
Copy link

naytun commented Mar 2, 2019

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

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

@shortcarver
Copy link

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.

@ltankey
Copy link

ltankey commented Mar 5, 2019

@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.

@HazAT
Copy link
Member

HazAT commented Sep 4, 2019

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.

@HazAT HazAT closed this as completed Sep 4, 2019
@ltankey
Copy link

ltankey commented Sep 5, 2019

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

@shortcarver
Copy link

shortcarver commented Sep 5, 2019 via email

@chj-damon
Copy link

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

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

same here.

@zmnv
Copy link

zmnv commented Oct 20, 2019

On iOS:

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

production environment


react native 0.60.4
@sentry/react-native 1.0.9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants