React native assembleRelease fails

Hi when assembling release for react native android I get error at the end, and Im not quite sure what could be wrong. I have following version react-native-sentry: ^0.23.2

Execution failed for task ':app:Loading dependency graph, done.easeJsAndAssets
warning: the transform cache was reset.
bundle: start
bundle: finish
bundle: Writing bundle output to: C:\Users\jsklepek\projects\works4me\android\app\build\intermediates\assets\release\index.android.bundle
bundle: Writing sourcemap output to: C:\Users\jsklepek\projects\works4me\android\app\build\intermediates\assets\release\index.android.bundle.map
bundle: Done writing bundle output
bundle: Done writing sourcemap output
bundle: Copying 15 asset files
bundle: Done copying assets
‘node_modulessentry-cli-binarybinsentry-cli’ is not recognized as an internal or external command,
operable program or batch file.
:app:bundleReleaseJsAndAssets FAILED

FAILURE: Build failed with an exception.

  • Where:
    Script ‘C:\Users\jsklepek\projects\works4me\node_modules\react-native-sentry\sentry.gradle’ line: 126

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

Process ‘command ‘cmd’’ 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.’ Process ‘command ‘cmd’’ finished with non-zero exit value 1

Can you check your sentry.properties file and fix the path for cli.executable
reference: https://github.com/getsentry/react-native-sentry/issues/222

my windows path is C:\Users\jsklepek\projects\works4me\node_modules\sentry-cli-binary\bin
Could you let me know what should be configured in cli.executable property in case I do not want to install cli globally?

Every path should be fine as long as sentry-cli exist on this location.
Also try it with a relative path to your project instead of a absolute one.

Im sorry but it does not work.

sentry.properties:
defaults.org=org
defaults.project=project
auth.token=token
cli.executable=C:\Users\jsklepek\projects\works4me\node_modules\sentry-cli-binary\bin\sentry-cli

Log:
Loading dependency graph, done.easeJsAndAssets
warning: the transform cache was reset.
bundle: start
bundle: finish
bundle: Writing bundle output to: C:\Users\jsklepek\projects\works4me\android\app\build\intermediates\assets\release\index.android.bundle
bundle: Writing sourcemap output to: C:\Users\jsklepek\projects\works4me\android\app\build\intermediates\assets\release\index.android.bundle.map
bundle: Done writing bundle output
bundle: Done writing sourcemap output
bundle: Copying 15 asset files
bundle: Done copying assets
‘C:\Users\jsklepek\projects\works4me\node_modules\sentry-cli-binary\bin\sentry-cli’ is not recognized as an internal or external command,
operable program or batch file.
:app:bundleReleaseJsAndAssets FAILED

FAILURE: Build failed with an exception.

  • Where:
    Script ‘C:\Users\jsklepek\projects\works4me\node_modules\react-native-sentry\sentry.gradle’ line: 126

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

Process ‘command ‘cmd’’ finished with non-zero exit value 1

Does it work with this path?
node_modules\sentry-cli-binary\bin\sentry-cli
And does this file exist?

Yes it exists, with your path im getting this:
bundle: Done writing bundle output
bundle: Done writing sourcemap output
bundle: Copying 15 asset files
bundle: Done copying assets
‘node_modulessentry-cli-binarybinsentry-cli’ is not recognized as an internal or external command,
operable program or batch file.
:app:bundleReleaseJsAndAssets FAILED
FAILURE: Build failed with an exception.

  • Where:
    Script ‘C:\Users\jsklepek\projects\works4me\node_modules\react-native-sentry\sentry.gradle’ line: 126
  • What went wrong:
    Execution failed for task ‘:app:bundleReleaseJsAndAssetsdebugSentryUpload’.

Process ‘command ‘cmd’’ finished with non-zero exit value 1

OK, and with this cli.executable=node_modules\\sentry-cli-binary\\bin\\sentry-cli

I tried that too indeed and result is the same
bundle: Done copying assets
‘node_modules\sentry-cli-binary\bin\sentry-cli’ is not recognized as an internal or external command,
operable program or batch file.
:app:bundleReleaseJsAndAssets FAILED
FAILURE: Build failed with an exception.

  • Where:
    Script ‘C:\Users\jsklepek\projects\works4me\node_modules\react-native-sentry\sentry.gradle’ line: 126
  • What went wrong:
    Execution failed for task ‘:app:bundleReleaseJsAndAssetsdebugSentryUpload’.

Process ‘command ‘cmd’’ finished with non-zero exit value 1

OK, something went wrong with your installation, can you make sure you have .NET Framework 4.0 installed and install sentry-cli-binary again?
There should be a sentry-cli.exe file with 4MB in this folder.

OK it works now, I did not exepected executable there, thank you!

Now I’m looking at thread https://github.com/getsentry/react-native-sentry/issues/234 because im behind proxy… is there an option which would disable uploading of source maps?