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 #35

Closed
jackmatrix opened this issue Aug 22, 2018 · 13 comments
Closed

Source code was not found #35

jackmatrix opened this issue Aug 22, 2018 · 13 comments

Comments

@jackmatrix
Copy link

jackmatrix commented Aug 22, 2018

I cannot display my original code in sentry dashboard.

I've configured the app.json as indicated in the docs

"hooks": {
      "postPublish": [
        {
          "file": "sentry-expo/upload-sourcemaps",
          "config": {
            "organization": "xxxxx",
            "project": "xxxxxxx",
            "authToken": "xxxxxxxxxx"
          }
        }
      ]
    }

My sentry dashboard display these two following errors

Discarded invalid parameter 'type'

Source code was not found for app:///crna-entry.delta? 
platform=ios&dev=true&minify=false`

Any solution ?

@brentvatne
Copy link
Member

Source code was not found for app:///crna-entry.delta?platform=ios&dev=true&minify=false`

it looks like you're trying to test this in development mode without uploading sourcemaps. sourcemaps only work when you publish it

@jackmatrix
Copy link
Author

i don't understand. I published my expo app with exp publish so many times. So it's seems something is going wrong. Because i received some errors from my production built but it still was the same problem. Any solution ?

Is there a possibility to upload sourcemap manually ?

@brentvatne
Copy link
Member

the error message you pasted is for a project in development, not in production. as in you are opening the project from the development URL and not the production URL. sure you can publish them manually just look at the source for sentry-expo.

@jackmatrix
Copy link
Author

I have another error from my production app and the issue is still there :

app:///%40user%2Fmyappname%2F1.0.1%2F614xxxxxxxxxxxxxxxxxxc-0.0.0.0-ios.js

i'm afraid i didn't understand how to do manual uploading. Where should i look at the sentry-expo source ?

@brentvatne
Copy link
Member

@junchenjun
Copy link

@brentvatne I am in the right channel, and I can see source map generated successfully under the Artifacts tab in the Sentry UI, but still got this error, maps are not working.

@brentvatne
Copy link
Member

can you ask for support from sentry? I'm not sure what's happening, as far as I know we are doing what we are supposed to do here

@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

So, given all of this, do we think the error lies upstream?

@brentvatne
Copy link
Member

@ltankey - yes you should follow up with sentry. please let me know what you find as it could help others in this thread

@brentvatne
Copy link
Member

screen shot 2019-01-08 at 11 05 01 am

I just tried this and it worked as expected with sentry-expo@1.11.1

@ltankey
Copy link

ltankey commented Jan 8, 2019

@brentvatne supposedly it works with the SaaS offering but not self-hosted sentry instances.

Issue being discussed here: getsentry/sentry-react-native#481

@JonnyBurger
Copy link

I got this error and my mistake was that hooks were not placed within expo object in app.json. This means that generally this error happens when no sourcemaps are being uploaded.

@ltankey
Copy link

ltankey commented Mar 5, 2019

Just a follow-up:

  • my issue was related to the on-prem sentry
  • artefacts are being uploaded fine
  • the issue seems to be in sentry's internal file resolution (weird)

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

5 participants