sentry upload failure message in Android release APK(signed)?

3.3k Views Asked by At

Working on the react-native app with go-Lang, In the sentry plugin facing issue while generating the release APK file. But we can able generate debug APK through android studio.

Android studio error messages: sentry reported an error: You do not have permission to perform this action. (http status: 403) Process 'command 'node_modules/@sentry/cli/bin/sentry-cli'' finished with non-zero exit value 1

Task :app:bundleReleaseJsAndAssets_SentryUploadCleanUp SKIPPED Skipping task ':app:bundleReleaseJsAndAssets_SentryUploadCleanUp' as task onlyIf is false. :app:bundleReleaseJsAndAssets_SentryUploadCleanUp (Thread[Execution worker for ':' Thread 8,5,main]) completed. Took 0.0 secs.

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':app:bundleReleaseJsAndAssets_SentryUpload'.

java.lang.NullPointerException (no error message)

I tried blow steps are tired

  1. Followed https://docs.sentry.io/platforms/react-native/advanced-setup/
  2. I removed the line cli.executable=node_modules/@sentry/cli/bin/sentry-cli in android/sentry.properties
  3. Modified logLevel: "debug/release"
  4. Verified with enableHermes true/false

Which is source stoping us, any guidelines will help to proceed further.

1

There are 1 best solutions below

0
Shay Elbaz On

Please be aware to the name of the project in your sentry.io site. I changed my project name from "react-native" to "my-project", and i got this error.

so I went to this path: android/sentry.properties and i changed the line 3

defaults.project=react-native

to this:

defaults.project=my-project

and the error is gone!

I am sure it will help.