sentry-react-native: Source code was not found
OS:
- Windows
- MacOS
- Linux
Platform:
- iOS
- Android
SDK:
-
@sentry/react-native -
react-native-sentry
react-native version: 1.2.1
Init Code:
Sentry.init({
dsn: __DEV__ ? Env.DEV_SENTRY_ENDPOINT : Env.SENTRY_ENDPOINT,
environment: "production",
loglevel: LogLevel.Debug,
attachStacktrace: true,
// debug: true,
// attachStacktrace: false
// deactivateStacktraceMerging
})
I have following issue:
When error will be thrown on application (in Simulator or Device) I will see “Source code was not found” error in Sentry panel. I see that script “Upload Debug Symbols to Sentry” was runned on production build
Steps to reproduce:
throw new Error("Test-1")
Actual result:
There was 1 error encountered while processing this event
Source code was not found Expand

Expected result:
- No errors in Sentry panel
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 2
- Comments: 23 (8 by maintainers)
Mystery kinda solved. In my case i needed to add to upload sourcemap
distatritbute. And set it in aplication.Sentry.setDist(dist).I would love to know meaing of
distattr. Could somebody explain or point me to docs about attrdist?I did not set it because
sentry-expo/upload-sourcemapdoes not sett it. 😕@indapublic What’s the message when you click expand next to the error “Source code was not found”? Possibly there is a path, something like
app://index.android.bundleIIRC - it should match one of your artifact’s name.If you’re running self-hosted sentry instance, there is an internal Sentry project. There could be some error logged, which could