sentry-react-native: Error: organization or project not found :app:bundleReleaseJsAndAssets

OS:

  • MacOS Platform:
  • Android

Output of `

react-native run-android --variant=release

error: organization or project not found :app:bundleReleaseJsAndAssets FAILED

FAILURE: Build failed with an exception.

  • Where: Script ‘/TF_ReactNative_Projects/Projects/MobilityOne/node_modules/react-native-sentry/sentry.gradle’ line: 126

  • What went wrong: Execution failed for task ‘:app:bundleReleaseJsAndAssetsdebugSentryUpload’.

Process ‘command ‘node_modules/sentry-cli-binary/bin/sentry-cli’’ finished with non-zero exit value 1

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Config:

Sentry.config(‘DSN’).install();

unable to build the react native Android build.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 1
  • Comments: 15 (4 by maintainers)

Most upvoted comments

I ran into this as well. I had changed my project name on the sentry settings page, but did not make the same changes in my sentry.properties file.

@gowrojisunil Please make sure you copy your org and project from your URL in your browser. I guess it should probably be lowercase.

right

defaults.org=testing-m5
defaults.project=mobilityone

Hi Hazat thanks for the above replies. This is how my URL looks like “https://sentry.io/testing-m5/mobilityone/” . so i need to change “TestingCompany” to “testing-m5” and project too ?

Thanks I have followed same steps it worked for me

  1. run “sentry-cli info” and “sentry-cli projects list” to make sure properties of config is correct;
  2. if be sure all properties is correct, but the error is still show, try to del all node_modules, re-install