-
-
Notifications
You must be signed in to change notification settings - Fork 345
@sentry/react-native - Tracking Issue - Feedback #612
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
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Guys, on Android is throwing: But i ran that already, it's supposed to be linked, any idea of why this is still being thrown? |
We've just implemented the beta SDK, but we hadn't installed the stable beta before. The crashes appear correctly within Sentry, but we have two questions about the mappings/sourcemaps/dSYM uploads:
|
We've just uploaded the Android RN sourcemaps manually via sentry-cli and the sourcemaps are visible within the artifacts tab of the release. But the issue is not deobfuscated by sentry. Do you have any ideas? https://sentry.io/organizations/dmtech/issues/1143322943/?project=1516691&statsPeriod=14d |
Hi, on |
@saschak42 I am not sure what you mean with the gradle file, you mean our current file is broken? @spenciefy This is odd, the new SDK should do the same. Is this a release build? Is this iOS?
@vshab Yes, they can. @msqar This indicates that autolinking didn't work, what version of react-native are you running? @crubier Did you upgrade your project? What version of react-native are you running and what steps did you take to install the SDK?
The issue you linked is no longer available, but in order for the symbolication to work the release name + dist of the artifact need to match the tags in the event. |
@HazAT I'm currently using 0.60.4 but i used to have 0.59. So i had to manually update my entire project whenever i updated it. Do you think linking gone wrong? it's possible... how does the linking work? And how is that handled? This is my
I made sure i had exactly EVERY change that was dropped on 0.60.4 in terms of configuration and versioning but i might be failling on something, everything works except for autolinking? |
@msqar In my experience, upgrading never works without issues.
|
@Genitivo did you solve your problem? I'm having the same issue when I try to build to release my app. @HazAT any suggestion? Looks like the problem is that the file 'index.android.bundle.packager.map' isn't being created on the directory, correct me if I'm wrong. My stacktrace:
VERSIONS: |
@lucasfalcaojump I am able to create release builds, but in the Sentry's dashboard I can't see the updated build. Remember to substitute every Everything is beautiful, but I still don't see the RELEASE in the Sentry's dashboard of the project, so I solve only a piece of the problem. |
@Genitivo , Thanks! You helped me a lot with your tips, but still isn't working to release... So I have to remove Sentry for now. |
Hello there, we have found a crash with
The error message is:
|
@Minishlink I have the same in emulator with |
Hi, all. used: "@sentry/react-native": "1.0.0-beta.5", |
I have a problem with uploading sourcemap: > Task :app:bundleReleaseJsAndAssets_SentryUpload FAILED
INFO 2019-08-23 17:40:28.156469 +03:00 Loaded config from /Users/{username}/.sentryclirc
DEBUG 2019-08-23 17:40:28.157220 +03:00 sentry-cli version: 1.47.1, platform: "darwin", architecture: "x86_64"
INFO 2019-08-23 17:40:28.157241 +03:00 sentry-cli was invoked with the following command line: "/Users/{username}/projects/{project_path}/node_modules/@sentry/cli/sentry-cli" "react-native" "gradle" "--bundle" "/Users/{username}/projects/{project_path}/android/app/build/generated/assets/react/release/index.android.bundle" "--sourcemap" "/Users/{username}/projects/{project_path}/android/app/build/intermediates/sourcemaps/release/index.android.bundle.packager.map" "--release" "net.clickclickdrive.mobile-1.9.0" "--dist" "342"
Processing react-native sourcemaps for Sentry upload.
INFO 2019-08-23 17:40:28.159676 +03:00 bundle path: /Users/{username}/projects/{project_path}/android/app/build/generated/assets/react/release/index.android.bundle
> Analyzing 2 sources
INFO 2019-08-23 17:40:28.159694 +03:00 sourcemap path: /Users/{username}/projects/{project_path}/android/app/build/intermediates/sourcemaps/release/index.android.bundle.packager.map
DEBUG 2019-08-23 17:40:28.159781 +03:00 Non-file bundle found
DEBUG 2019-08-23 17:40:28.458998 +03:00 error: running update nagger
DEBUG 2019-08-23 17:40:28.459039 +03:00 skipping update nagger because session is not attended
error: No such file or directory (os error 2)
DEBUG 2019-08-23 17:40:28.459658 +03:00 client close; no transport to shut down (from sentry)
FAILURE: Build failed with an exception. I found that the sourcemap that I have differs from what I have: $ ls /Users/{usrename}/projects/{project_path}/android/app/build/generated/assets/react/release/
index.android.bundle index.android.bundle.map sentry-cli looks for: > Analyzing 2 sources
INFO 2019-08-23 17:40:28.159694 +03:00 sourcemap path: /Users/{usrename}/projects/{project_path}/android/app/build/intermediates/sourcemaps/release/index.android.bundle.packager.map
DEBUG 2019-08-23 17:40:28.159781 +03:00 Non-file bundle found Is there a way to specify sourcemap manually |
Also, see my comment #641 (comment) - in my case failure reason is ambiguity in a sourcemap output file name |
Also managed to find out |
I am closing this issue as of now, please consider opening new issues from now on since this thread is already quite large. |
@HazAT which issue should we follow to track Hermes support? |
Hi @HazAT, currently I'm facing a problem of
In So my question is: How can I resolve this and are we missing the --dist option in sentry-cli react-native appcenter? Thank you. |
@nenjamin2405 Yes, please add |
@HazAT But I cannot find |
@nenjamin2405 Please open a new issue, I am locking this now since there is too much in here. |
We just released the new version of our React Native SDK
@sentry/[email protected]
and we are looking for people to try it out and provide feedback.https://www.npmjs.com/package/@sentry/react-native
>= 0.60
@sentry/browser
How to install it?
If you already have an existing React Native project install it with yarn like:
If you are using
react-native
<0.60
do:If
react-native
>=0.60
do:After that, you need to
always for project
>= 0.60
and only if you have a Cocoapods setup if you run below0.60
.What changed?
@sentry/react-native
now joins the unified family and has pretty much the same API as@sentry/browser
. There are also some internal improvements that should make the overall experience when using the SDK more stable and robust.The new SDK is fully written in typescript and therefore provides full typing out of the box.
Upgrading from
react-native-sentry
You first need to
unlink
the package likereact-native unlink react-native-sentry
.Then remove it from your dependencies
yarn remove react-native-sentry
.There are some code changes necessary you need to import and init the new SDK like this:
You can remove the code in your
AppDelegate.m
CodePush
The function
Sentry.setVersion
has been dropped in favor ofSentry.setRelease
(which exactly sets the string you set as the release name, without any magic).Same goes for
Sentry.setDist
, it just sets thedist
to the string you set.Why?
Reason for this change is that since the initial release of our React Native SDK a lot has changed on both our and React Native side. We wanted to make sure that we can keep up with the pace and future features that are yet to come for Sentry.
New Features
On device symbolcation for Debug builds
We now have an integration that runs only in debug doing symbolication on the device. Providing a better stack trace for debug builds with correct line numbers and filenames for application frames.
Before

After

Whishlist
symbolicateStackTrace
of react-native to symbolicate on device in Debug.The text was updated successfully, but these errors were encountered: