-
-
Notifications
You must be signed in to change notification settings - Fork 344
The abs_path
of the stack frame is index.android.bundle
which is not a valid URL
#2879
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
Comments
I'm seeing this as well in my react native android build. hermes has also been enabled by default, which might be a factor. My attempts at manually uploading and automatically uploading both have led to the same error. |
Same here. It was previously working while I was on |
Take a look at https://docs.sentry.io/platforms/react-native/troubleshooting/#source-maps-with-hermes |
@marandaneto I don't upload source maps manually, I rely on the standard Sentry Gradle plugin on Android, and I was using Hermes before with no problems with source maps. |
I have the same issue. I am using the gradle plugin to upload my source maps. Is there a reason that doesn't work with v5 anymore? Why would we be using the gradle plugin at all then? That is especially relevant because Hermes is now the recommended standard by the RN team. |
I'm not aware that it stopped working, @krystofwoldrich can you double check? |
v5 also broke ios for me. Switching back to v4 solved that issue |
Thank you for the info, I'm checking it now. |
Same for me with @sentry/react-native: 5.1.0 on React Native 0.67.3. |
Hi same issue there, was working even with hermes activated, only upgrade of sentry/react-native. |
Having the same issue with
When reverted back to |
We are working on a permanent fix but for now, everyone who is using import {
defaultStackParser,
} from '@sentry/react';
const defaultReactNativeStackParser = (stack: string, skipFirst?: number) => {
const frames = defaultStackParser(stack, skipFirst);
return frames.map(frame => {
delete frame.abs_path;
return frame;
});
}
Sentry.init({
stackParser: defaultReactNativeStackParser
}); |
@krystofwoldrich I add a look via 5.1.1 and I'm still facing this issue on Android and iOS. |
@AlexanderEggers Thanks for the info, I've answered in the new issue. |
OS:
Platform:
SDK:
@sentry/react-native
(>= 1.0.0)react-native-sentry
(<= 0.43.2)SDK version: 5.1.0
react-native
version: 0.71.4Are you using Expo?
Are you using sentry.io or on-premise?
If you are using sentry.io, please post a link to your issue so we can take a look:
Link to issue
Configuration:
(
@sentry/react-native
)I have following issue:
My React Native (v0.70.4) app project was correctly set up and working with Sentry (v4.8.0), in particular the source map upload and resolution used to work fine. Yesterday I updated my app, among other stuff I have upgraded
@sentry/react-native
v4.8.0 ⇒ v.5.1.0; andreact-native
v.0.70.4 ⇒ v0.71.4, without touching anything else related to the Sentry setup. After this the source map resolution in new error events fails with the message:I checked that my build artifacts are still correctly uploaded, and look no different than before. The
abs_path
values in the event JSON have changed though:"abs_path":"index.android.bundle"
"abs_path":"app:///index.android.bundle"
.Thus, in my current understanding, it is caused either by a bug or a feature in the latest releases of
@sentry/react-native
. I wasn't able to find any relevant info in the Sentry migration guide for v5, or in the trouble-shooring, general setup instructions, existing issues in the repo; thus asking for help to further troubleshoot and fix it.The text was updated successfully, but these errors were encountered: