Closed shehan-mark closed 5 years ago
I'm running into the same issue, here's the Sentry error:
> Task :app:bundleReleaseJsAndAssets_SentryUpload FAILED
Processing react-native sourcemaps for Sentry upload.
> Analyzing 2 sources
> Rewriting sources
> Adding source map references
error: request failed because API URL was incorrectly formatted
caused by: bad sentry url: not on URL root (https://123123123@sentry.io/123123123)
Deleting android/app/build
and android/build
fixed this.
@StefanDorresteijn Hey i tried your solution there. But it did not fix my issue yet. I think my sourcemaps are not generating.
make sure your name flavor is well written.
For example:
executing ./gradlew bundleBeta
there must be these files sentry-beta-release.properties sentry-beta-debug.properties
actually i found my problem. My project is using a monorepo where it has a web project and my mobile project. They both use Sentry so when i install @Sentry/react-native
and nohoist. It only nohoisted the react-native
package of Sentry. So other dependencies are hoisted to root node modules. Such as Sentry/CLI, hub, core
and all that.
So what i did was added this option "**/@sentry/react-native/**"
to nohoist config. So that it will keep @Sentry/react-native
and all of its dependancies together in the same directory.
And it worked.
@z3us94 Can you give us an example of where to put **/@sentry/react-native/**
?
Package.json in added. But i keep gettings erros.
Task :app:bundleReleaseJsAndAssets_SentryUpload FAILED
"workspaces": { "nohoist": [ "**" ] }
this worked for me as well. no need to install @sentry/cli
though it would be nice to actually get to the bottom of why the sentry library is looking in the wrong node_modules path for that particular operation. that way it would be compatible with yarn workspaces without the nonhoist option
OS:
Platform:
SDK:
@sentry/react-native
react-native-sentry
react-native
version: 0.59.10Init Code:
I have following issue: when i run
./gradlew bundleRelease
i get this error> Task :app:bundleReleaseJsAndAssets_SentryUpload FAILED
which im not sure why that occurs because other than that i dont get any error message.Description goes here ... I have followed the manual configuration as this document says. https://docs.sentry.io/platforms/react-native/manual-setup/ and i have checked the token that my organization has. And no i did not change my project name or anything after initializing this in the app. I was able to get one step ahead from this comment here. https://github.com/getsentry/sentry-react-native/issues/578#issuecomment-503428032
and i do use nvm and i dont see any problems with node not found or anything. And i have attached the debug log when trying to build the app. And im using
"@sentry/react-native": "^1.0.6"
And i found this solution here https://github.com/getsentry/sentry-react-native/issues/641#issuecomment-524620974 as well. Could this be the issue ?
Debug log
Expected result: