getsentry / sentry-react-native

Official Sentry SDK for React Native
https://sentry.io
MIT License
1.57k stars 337 forks source link

Task :app:bundleProductionReleaseJsAndAssets_SentryUpload failed: SSL peer certificate or SSH remote key was not OK #2970

Closed supmanyu closed 1 year ago

supmanyu commented 1 year ago

OS:

Platform:

SDK:

SDK version: 5.3.1

react-native version: 0.64.3

Are you using Expo?

Are you using sentry.io or on-premise?

If you are using sentry.io, please post a link to your issue so we can take a look:

N/A

Configuration:

(@sentry/react-native)

Sentry.init({
  dsn: 'https://...@sentry.io/...'
  // other options
});

I have following issue:

We recently purchased a paid plan for sentry.io, and since then we have been unable to create android builds using fastlane, SSL verification fails everytime with error: API request failed caused by: [60] SSL peer certificate or SSH remote key was not OK (SSL certificate problem: Couldn't understand the server certificate format)

Steps to reproduce:

Actual result:

Build fails after Adding source map references with error: API request failed caused by: [60] SSL peer certificate or SSH remote key was not OK (SSL certificate problem: Couldn't understand the server certificate format)

Expected result:

Build should succeed after uploading sourcemaps to sentry.

Fixes tried:

  1. Upgrading to the latest version of @sentry/react-native
  2. Adding http.verify_ssl = false to sentry.properties file
  3. Generating a new auth token
krystofwoldrich commented 1 year ago

Hi, thank you for the message,

could you try to run sentry-cli source maps upload manually? Just so we can isolate the issue if it's related to RN and Fastlane or to the cli.

theahmadzai commented 1 year ago

I'm facing the same issue here is log

:react-native-gradle-plugin:compileKotlin UP-TO-DATE
:react-native-gradle-plugin:compileJava NO-SOURCE
:react-native-gradle-plugin:pluginDescriptors UP-TO-DATE
:react-native-gradle-plugin:processResources UP-TO-DATE
:react-native-gradle-plugin:classes UP-TO-DATE
:react-native-gradle-plugin:inspectClassesForKotlinIC UP-TO-DATE
:react-native-gradle-plugin:jar UP-TO-DATE
:notifee_react-native @notifee/react-native found at C:\Users\theah\Desktop\perdiem\node_modules\@notifee\react-native
:notifee_react-native package.json found at C:\Users\theah\Desktop\perdiem\node_modules\@notifee\react-native\package.json
:notifee_react-native:version set from package.json: 7.6.1 (7,6,1 - 7006001)
:notifee_react-native:android.compileSdk using custom value: 33
:notifee_react-native:android.targetSdk using custom value: 33
:notifee_react-native:android.minSdk using custom value: 24
:notifee_react-native:reactNativeAndroidDir C:\Users\theah\Desktop\perdiem\node_modules\react-native\android
:react-native-firebase_app package.json found at C:\Users\theah\Desktop\perdiem\node_modules\@react-native-firebase\app\package.json
:react-native-firebase_app:firebase.bom using default value: 31.3.0
:react-native-firebase_app:play.play-services-auth using default value: 20.3.0
:react-native-firebase_app package.json found at C:\Users\theah\Desktop\perdiem\node_modules\@react-native-firebase\app\package.json
:react-native-firebase_app:version set from package.json: 17.4.1 (17,4,1 - 17004001)
:react-native-firebase_app:android.compileSdk using custom value: 33
:react-native-firebase_app:android.targetSdk using custom value: 33
:react-native-firebase_app:android.minSdk using custom value: 24
:react-native-firebase_app:reactNativeAndroidDir C:\Users\theah\Desktop\perdiem\node_modules\react-native\android
:react-native-firebase_messaging package.json found at C:\Users\theah\Desktop\perdiem\node_modules\@react-native-firebase\messaging\package.json
:react-native-firebase_app package.json found at C:\Users\theah\Desktop\perdiem\node_modules\@react-native-firebase\app\package.json
:react-native-firebase_messaging:firebase.bom using default value: 31.3.0
:react-native-firebase_messaging package.json found at C:\Users\theah\Desktop\perdiem\node_modules\@react-native-firebase\messaging\package.json
:react-native-firebase_messaging:version set from package.json: 17.4.1 (17,4,1 - 17004001)
:react-native-firebase_messaging:android.compileSdk using custom value: 33
:react-native-firebase_messaging:android.targetSdk using custom value: 33
:react-native-firebase_messaging:android.minSdk using custom value: 24
:react-native-firebase_messaging:reactNativeAndroidDir C:\Users\theah\Desktop\perdiem\node_modules\react-native\android
No AAR for react-native-reanimated found. Attempting to build from source.
Android gradle plugin: 7.3.1
Gradle: 7.5.1
WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the `gradle.properties` file or use the new publishing DSL.

The Kotlin Gradle plugin was loaded multiple times in different subprojects, which is not supported and may break the build. 
This might happen in subprojects that apply the Kotlin plugins with the Gradle 'plugins { ... }' DSL if they specify explicit versions, even if the versions are equal.
Please add the Kotlin plugin to the common parent project or the root project, then remove the versions in the subprojects.
If the parent project does not need the plugin, add 'apply false' to the plugin line.
See: https://docs.gradle.org/current/userguide/plugins.html#sec:subprojects_plugins_dsl
The Kotlin plugin was loaded in the following projects: ':react-native-gesture-handler', ':react-native-screens'
:app:buildCodegenCLI SKIPPED
:app:generateCodegenSchemaFromJavaScript SKIPPED
:app:generateCodegenArtifactsFromSchema SKIPPED
:app:generatePackageList
:app:preBuild
:app:preReleaseBuild
:invertase_react-native-apple-authentication:preBuild UP-TO-DATE
:invertase_react-native-apple-authentication:preReleaseBuild UP-TO-DATE
:invertase_react-native-apple-authentication:packageReleaseRenderscript NO-SOURCE
:mixpanel-react-native:preBuild UP-TO-DATE
:mixpanel-react-native:preReleaseBuild UP-TO-DATE
:mixpanel-react-native:packageReleaseRenderscript NO-SOURCE
:notifee_react-native:preBuild UP-TO-DATE
:notifee_react-native:preReleaseBuild UP-TO-DATE
:notifee_react-native:packageReleaseRenderscript NO-SOURCE
:react-native-async-storage_async-storage:preBuild UP-TO-DATE
:react-native-async-storage_async-storage:preReleaseBuild UP-TO-DATE
:react-native-async-storage_async-storage:packageReleaseRenderscript NO-SOURCE
:react-native-community_geolocation:preBuild UP-TO-DATE
:react-native-community_geolocation:preReleaseBuild UP-TO-DATE
:react-native-community_geolocation:packageReleaseRenderscript NO-SOURCE
:react-native-date-picker:preBuild UP-TO-DATE
:react-native-date-picker:preReleaseBuild UP-TO-DATE
:react-native-date-picker:packageReleaseRenderscript NO-SOURCE
:react-native-device-info:preBuild UP-TO-DATE
:react-native-device-info:preReleaseBuild UP-TO-DATE
:react-native-device-info:packageReleaseRenderscript NO-SOURCE
:react-native-fast-image:preBuild UP-TO-DATE
:react-native-fast-image:preReleaseBuild UP-TO-DATE
:react-native-fast-image:packageReleaseRenderscript NO-SOURCE
:react-native-firebase_app:preBuild UP-TO-DATE
:react-native-firebase_app:preReleaseBuild UP-TO-DATE
:react-native-firebase_app:packageReleaseRenderscript NO-SOURCE
:react-native-firebase_messaging:preBuild UP-TO-DATE
:react-native-firebase_messaging:preReleaseBuild UP-TO-DATE
:react-native-firebase_messaging:packageReleaseRenderscript NO-SOURCE
:react-native-gesture-handler:assertNoMultipleInstances
:react-native-gesture-handler:preBuild
:react-native-gesture-handler:preReleaseBuild
:react-native-gesture-handler:packageReleaseRenderscript NO-SOURCE
:react-native-google-signin_google-signin:preBuild UP-TO-DATE
:react-native-google-signin_google-signin:preReleaseBuild UP-TO-DATE
:react-native-google-signin_google-signin:packageReleaseRenderscript NO-SOURCE
:react-native-in-app-review:preBuild UP-TO-DATE
:react-native-in-app-review:preReleaseBuild UP-TO-DATE
:react-native-in-app-review:packageReleaseRenderscript NO-SOURCE
:react-native-localize:preBuild UP-TO-DATE
:react-native-localize:preReleaseBuild UP-TO-DATE
:react-native-localize:packageReleaseRenderscript NO-SOURCE
:react-native-maps:preBuild UP-TO-DATE
:react-native-maps:preReleaseBuild UP-TO-DATE
:react-native-maps:packageReleaseRenderscript NO-SOURCE
:react-native-reanimated:assertLatestReactNativeWithNewArchitectureTask SKIPPED
:react-native-reanimated:assertNoMultipleInstancesTask
:react-native-reanimated:assertNoReanimated2WithNewArchitectureTask SKIPPED
:react-native-reanimated:preBuild
:react-native-reanimated:preReleaseBuild
:react-native-reanimated:packageReleaseRenderscript NO-SOURCE
:react-native-safe-area-context:preBuild UP-TO-DATE
:react-native-safe-area-context:preReleaseBuild UP-TO-DATE
:react-native-safe-area-context:packageReleaseRenderscript NO-SOURCE
:react-native-screens:preBuild UP-TO-DATE
:react-native-screens:preReleaseBuild UP-TO-DATE
:react-native-screens:packageReleaseRenderscript NO-SOURCE
:react-native-splash-screen:preBuild UP-TO-DATE
:react-native-splash-screen:preReleaseBuild UP-TO-DATE
:react-native-splash-screen:packageReleaseRenderscript NO-SOURCE
:react-native-square-in-app-payments:preBuild UP-TO-DATE
:react-native-square-in-app-payments:preReleaseBuild UP-TO-DATE
:react-native-square-in-app-payments:packageReleaseRenderscript NO-SOURCE
:react-native-svg:preBuild UP-TO-DATE
:react-native-svg:preReleaseBuild UP-TO-DATE
:react-native-svg:packageReleaseRenderscript NO-SOURCE
:react-native-vector-icons:preBuild UP-TO-DATE
:react-native-vector-icons:preReleaseBuild UP-TO-DATE
:react-native-vector-icons:packageReleaseRenderscript NO-SOURCE
:react-native-version-check:preBuild UP-TO-DATE
:react-native-version-check:preReleaseBuild UP-TO-DATE
:react-native-version-check:packageReleaseRenderscript NO-SOURCE
:sentry_react-native:preBuild UP-TO-DATE
:sentry_react-native:preReleaseBuild UP-TO-DATE
:sentry_react-native:packageReleaseRenderscript NO-SOURCE
:app:compileReleaseRenderscript NO-SOURCE
:app:generateReleaseResValues
:invertase_react-native-apple-authentication:compileReleaseRenderscript NO-SOURCE
:invertase_react-native-apple-authentication:generateReleaseResValues
:invertase_react-native-apple-authentication:generateReleaseResources
:invertase_react-native-apple-authentication:packageReleaseResources
:mixpanel-react-native:compileReleaseRenderscript NO-SOURCE
:mixpanel-react-native:generateReleaseResValues
:mixpanel-react-native:generateReleaseResources
:mixpanel-react-native:packageReleaseResources
:notifee_react-native:compileReleaseRenderscript NO-SOURCE
:notifee_react-native:generateReleaseResValues
:notifee_react-native:generateReleaseResources
:notifee_react-native:packageReleaseResources
:react-native-async-storage_async-storage:compileReleaseRenderscript NO-SOURCE
:react-native-async-storage_async-storage:generateReleaseResValues
:react-native-async-storage_async-storage:generateReleaseResources
:react-native-async-storage_async-storage:packageReleaseResources
:react-native-community_geolocation:compileReleaseRenderscript NO-SOURCE
:react-native-community_geolocation:generateReleaseResValues
:react-native-community_geolocation:generateReleaseResources
:react-native-community_geolocation:packageReleaseResources
:react-native-date-picker:compileReleaseRenderscript NO-SOURCE
:react-native-date-picker:generateReleaseResValues
:react-native-date-picker:generateReleaseResources
:react-native-date-picker:packageReleaseResources
:react-native-device-info:compileReleaseRenderscript NO-SOURCE
:react-native-device-info:generateReleaseResValues
:react-native-device-info:generateReleaseResources
:react-native-device-info:packageReleaseResources
:react-native-fast-image:compileReleaseRenderscript NO-SOURCE
:react-native-fast-image:generateReleaseResValues
:react-native-fast-image:generateReleaseResources
:react-native-fast-image:packageReleaseResources
:react-native-firebase_app:compileReleaseRenderscript NO-SOURCE
:react-native-firebase_app:generateReleaseResValues
:react-native-firebase_app:generateReleaseResources
:react-native-firebase_app:packageReleaseResources
:react-native-firebase_messaging:compileReleaseRenderscript NO-SOURCE
:react-native-firebase_messaging:generateReleaseResValues
:react-native-firebase_messaging:generateReleaseResources
:react-native-firebase_messaging:packageReleaseResources
:react-native-gesture-handler:compileReleaseRenderscript NO-SOURCE
:react-native-gesture-handler:generateReleaseResValues
:react-native-gesture-handler:generateReleaseResources
:react-native-gesture-handler:packageReleaseResources
:react-native-google-signin_google-signin:compileReleaseRenderscript NO-SOURCE
:react-native-google-signin_google-signin:generateReleaseResValues
:react-native-google-signin_google-signin:generateReleaseResources
:react-native-google-signin_google-signin:packageReleaseResources
:react-native-in-app-review:compileReleaseRenderscript NO-SOURCE
:react-native-in-app-review:generateReleaseResValues
:react-native-in-app-review:generateReleaseResources
:react-native-in-app-review:packageReleaseResources
:react-native-localize:compileReleaseRenderscript NO-SOURCE
:react-native-localize:generateReleaseResValues
:react-native-localize:generateReleaseResources
:react-native-localize:packageReleaseResources
:react-native-maps:compileReleaseRenderscript NO-SOURCE
:react-native-maps:generateReleaseResValues
:react-native-maps:generateReleaseResources
:react-native-maps:packageReleaseResources
:react-native-reanimated:compileReleaseRenderscript NO-SOURCE
:react-native-reanimated:generateReleaseResValues
:react-native-reanimated:generateReleaseResources
:react-native-reanimated:packageReleaseResources
:react-native-safe-area-context:compileReleaseRenderscript NO-SOURCE
:react-native-safe-area-context:generateReleaseResValues
:react-native-safe-area-context:generateReleaseResources
:react-native-safe-area-context:packageReleaseResources
:react-native-screens:compileReleaseRenderscript NO-SOURCE
:react-native-screens:generateReleaseResValues
:react-native-screens:generateReleaseResources
:react-native-screens:packageReleaseResources
:react-native-splash-screen:compileReleaseRenderscript NO-SOURCE
:react-native-splash-screen:generateReleaseResValues
:react-native-splash-screen:generateReleaseResources
:react-native-splash-screen:packageReleaseResources
:react-native-square-in-app-payments:compileReleaseRenderscript NO-SOURCE
:react-native-square-in-app-payments:generateReleaseResValues
:react-native-square-in-app-payments:generateReleaseResources
:react-native-square-in-app-payments:packageReleaseResources
:react-native-svg:compileReleaseRenderscript NO-SOURCE
:react-native-svg:generateReleaseResValues
:react-native-svg:generateReleaseResources
:react-native-svg:packageReleaseResources
:react-native-vector-icons:compileReleaseRenderscript NO-SOURCE
:react-native-vector-icons:generateReleaseResValues
:react-native-vector-icons:generateReleaseResources
:react-native-vector-icons:packageReleaseResources
:react-native-version-check:compileReleaseRenderscript NO-SOURCE
:react-native-version-check:generateReleaseResValues
:react-native-version-check:generateReleaseResources
:react-native-version-check:packageReleaseResources
:sentry_react-native:compileReleaseRenderscript NO-SOURCE
:sentry_react-native:generateReleaseResValues
:sentry_react-native:generateReleaseResources
:sentry_react-native:packageReleaseResources
:app:mapReleaseSourceSetPaths
:app:createBundleReleaseJsAndAssets
warning: the transform cache was reset.
                Welcome to Metro v0.73.9
              Fast - Scalable - Integrated

info Writing bundle output to:, android\app\build\ASSETS\createBundleReleaseJsAndAssets\index.android.bundle
info Writing sourcemap output to:, android\app\build\intermediates\sourcemaps\react\release\index.android.bundle.packager.map
info Done writing bundle output
info Done writing sourcemap output
info Copying 282 asset files
info Done copying assets
android\app\build\ASSETS\createBundleReleaseJsAndAssets\index.android.bundle:1713:23: warning: the variable "DebuggerInternal" was not declared in function "__shouldPauseOnThrow"
        return typeof DebuggerInternal !== 'undefined' && DebuggerInternal.shouldPauseOnThrow === true;
                      ^~~~~~~~~~~~~~~~
android\app\build\ASSETS\createBundleReleaseJsAndAssets\index.android.bundle:4933:7: warning: the variable "setTimeout" was not declared in function "logCapturedError"
      setTimeout(function () {
      ^~~~~~~~~~
android\app\build\ASSETS\createBundleReleaseJsAndAssets\index.android.bundle:2907:108: warning: the variable "nativeFabricUIManager" was not declared in function "onChange"
      (fromOrTo = fromOrTo && fromOrTo.stateNode) && fromOrTo.canonical._internalInstanceHandle ? (from && nativeFabricUIManager.setIsJSResponder(from.stateNode.node, false, blockNativeResponder || false), to && nativeFabricUIManager.setIsJSResponder(to.stateNode.node, true, blockNativeResponder || false)) : null !== to ? _$$_REQUIRE(_dependencyMap[2]).UIManager.setJSResponder(to.stateNode.canonical._nativeTag, blockNativeResponder) : _$$_REQUIRE(_dependencyMap[2]).UIManager.clearJSResponder();
                                                                                                           ^~~~~~~~~~~~~~~~~~~~~
android\app\build\ASSETS\createBundleReleaseJsAndAssets\index.android.bundle:3514:21: warning: the variable "clearTimeout" was not declared in anonymous function " 98#"
    cancelTimeout = clearTimeout;
                    ^~~~~~~~~~~~
android\app\build\ASSETS\createBundleReleaseJsAndAssets\index.android.bundle:7264:30: warning: the variable "__REACT_DEVTOOLS_GLOBAL_HOOK__" was not declared in anonymous function " 98#"
  if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
android\app\build\ASSETS\createBundleReleaseJsAndAssets\index.android.bundle:8033:5: warning: the variable "setImmediate" was not declared in function "handleResolved"
    setImmediate(function () {
    ^~~~~~~~~~~~
android\app\build\ASSETS\createBundleReleaseJsAndAssets\index.android.bundle:8244:16: warning: the variable "AggregateError" was not declared in function "getAggregateError"
    if (typeof AggregateError === 'function') {
               ^~~~~~~~~~~~~~
android\app\build\ASSETS\createBundleReleaseJsAndAssets\index.android.bundle:10993:12: warning: the variable "fetch" was not declared in anonymous function " 301#"
    fetch: fetch,
           ^~~~~
android\app\build\ASSETS\createBundleReleaseJsAndAssets\index.android.bundle:10994:14: warning: the variable "Headers" was not declared in anonymous function " 301#"
    Headers: Headers,
             ^~~~~~~
android\app\build\ASSETS\createBundleReleaseJsAndAssets\index.android.bundle:10995:14: warning: the variable "Request" was not declared in anonymous function " 301#"
    Request: Request,
             ^~~~~~~
android\app\build\ASSETS\createBundleReleaseJsAndAssets\index.android.bundle:10996:15: warning: the variable "Response" was not declared in anonymous function " 301#"
    Response: Response
              ^~~~~~~~
android\app\build\ASSETS\createBundleReleaseJsAndAssets\index.android.bundle:11144:24: warning: the variable "FileReader" was not declared in function "readBlobAsArrayBuffer"
      var reader = new FileReader();
                       ^~~~~~~~~~
android\app\build\ASSETS\createBundleReleaseJsAndAssets\index.android.bundle:11181:36: warning: the variable "Blob" was not declared in anonymous function " 312#"
        } else if (support.blob && Blob.prototype.isPrototypeOf(body)) {
                                   ^~~~
android\app\build\ASSETS\createBundleReleaseJsAndAssets\index.android.bundle:11183:40: warning: the variable "FormData" was not declared in anonymous function " 312#"
        } else if (support.formData && FormData.prototype.isPrototypeOf(body)) {
                                       ^~~~~~~~
android\app\build\ASSETS\createBundleReleaseJsAndAssets\index.android.bundle:11185:44: warning: the variable "URLSearchParams" was not declared in anonymous function " 312#"
        } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {
                                           ^~~~~~~~~~~~~~~
android\app\build\ASSETS\createBundleReleaseJsAndAssets\index.android.bundle:11412:23: warning: the variable "XMLHttpRequest" was not declared in anonymous function " 321#"
        var xhr = new XMLHttpRequest();
                      ^~~~~~~~~~~~~~
android\app\build\ASSETS\createBundleReleaseJsAndAssets\index.android.bundle:11005:76: warning: the variable "self" was not declared in anonymous function " 304#"
    var global = typeof globalThis !== 'undefined' && globalThis || typeof self !== 'undefined' && self || typeof global !== 'undefined' && global;
                                                                           ^~~~
android\app\build\ASSETS\createBundleReleaseJsAndAssets\index.android.bundle:16644:27: warning: the variable "performance" was not declared in anonymous function " 560#"
  if ("object" === typeof performance && "function" === typeof performance.now) {
                          ^~~~~~~~~~~
android\app\build\ASSETS\createBundleReleaseJsAndAssets\index.android.bundle:16667:26: warning: the variable "navigator" was not declared in anonymous function " 560#"
  "undefined" !== typeof navigator && undefined !== navigator.scheduling && undefined !== navigator.scheduling.isInputPending && navigator.scheduling.isInputPending.bind(navigator.scheduling);
                         ^~~~~~~~~
android\app\build\ASSETS\createBundleReleaseJsAndAssets\index.android.bundle:16734:37: warning: the variable "MessageChannel" was not declared in anonymous function " 560#"
  };else if ("undefined" !== typeof MessageChannel) {
                                    ^~~~~~~~~~~~~~
android\app\build\ASSETS\createBundleReleaseJsAndAssets\index.android.bundle:24933:34: warning: the variable "requestAnimationFrame" was not declared in function "start 9#"
          this._animationFrame = requestAnimationFrame(this.onUpdate.bind(this));
                                 ^~~~~~~~~~~~~~~~~~~~~
android\app\build\ASSETS\createBundleReleaseJsAndAssets\index.android.bundle:44247:26: warning: the variable "setInterval" was not declared in function "SessionFlusher"
      this._intervalId = setInterval(function () {
                         ^~~~~~~~~~~
android\app\build\ASSETS\createBundleReleaseJsAndAssets\index.android.bundle:44293:9: warning: the variable "clearInterval" was not declared in function "close 3#"
        clearInterval(this._intervalId);
        ^~~~~~~~~~~~~
android\app\build\ASSETS\createBundleReleaseJsAndAssets\index.android.bundle:49493:38: warning: the variable "HTMLElement" was not declared in function "ShadowDomManager"
      this.restorePatches.push(patch(HTMLElement.prototype, 'attachShadow', function (original) {
                                     ^~~~~~~~~~~
android\app\build\ASSETS\createBundleReleaseJsAndAssets\index.android.bundle:54281:11: warning: the variable "addEventListener" was not declared in anonymous function " 1958#"
          addEventListener(type, registerInteractionTransaction, {
          ^~~~~~~~~~~~~~~~
android\app\build\ASSETS\createBundleReleaseJsAndAssets\index.android.bundle:62213:24: warning: the variable "webkitIndexedDB" was not declared in function "getIDB"
            if (typeof webkitIndexedDB !== 'undefined') {
                       ^~~~~~~~~~~~~~~
android\app\build\ASSETS\createBundleReleaseJsAndAssets\index.android.bundle:62216:24: warning: the variable "mozIndexedDB" was not declared in function "getIDB"
            if (typeof mozIndexedDB !== 'undefined') {
                       ^~~~~~~~~~~~
android\app\build\ASSETS\createBundleReleaseJsAndAssets\index.android.bundle:62219:24: warning: the variable "OIndexedDB" was not declared in function "getIDB"
            if (typeof OIndexedDB !== 'undefined') {
                       ^~~~~~~~~~
android\app\build\ASSETS\createBundleReleaseJsAndAssets\index.android.bundle:62222:24: warning: the variable "msIndexedDB" was not declared in function "getIDB"
            if (typeof msIndexedDB !== 'undefined') {
                       ^~~~~~~~~~~
android\app\build\ASSETS\createBundleReleaseJsAndAssets\index.android.bundle:62235:35: warning: the variable "openDatabase" was not declared in function "isIndexedDBValid"
            var isSafari = typeof openDatabase !== 'undefined' && /(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent) && !/BlackBerry/.test(navigator.platform);
                                  ^~~~~~~~~~~~
android\app\build\ASSETS\createBundleReleaseJsAndAssets\index.android.bundle:62237:90: warning: the variable "IDBKeyRange" was not declared in function "isIndexedDBValid"
            return (!isSafari || hasFetch) && typeof indexedDB !== 'undefined' && typeof IDBKeyRange !== 'undefined';
                                                                                         ^~~~~~~~~~~
android\app\build\ASSETS\createBundleReleaseJsAndAssets\index.android.bundle:62251:34: warning: the variable "BlobBuilder" was not declared in function "createBlob"
            var Builder = typeof BlobBuilder !== 'undefined' ? BlobBuilder : typeof MSBlobBuilder !== 'undefined' ? MSBlobBuilder : typeof MozBlobBuilder !== 'undefined' ? MozBlobBuilder : WebKitBlobBuilder;
                                 ^~~~~~~~~~~
android\app\build\ASSETS\createBundleReleaseJsAndAssets\index.android.bundle:62251:85: warning: the variable "MSBlobBuilder" was not declared in function "createBlob"
            var Builder = typeof BlobBuilder !== 'undefined' ? BlobBuilder : typeof MSBlobBuilder !== 'undefined' ? MSBlobBuilder : typeof MozBlobBuilder !== 'undefined' ? MozBlobBuilder : WebKitBlobBuilder;
                                                                                    ^~~~~~~~~~~~~
android\app\build\ASSETS\createBundleReleaseJsAndAssets\index.android.bundle:62251:140: warning: the variable "MozBlobBuilder" was not declared in function "createBlob"
            var Builder = typeof BlobBuilder !== 'undefined' ? BlobBuilder : typeof MSBlobBuilder !== 'undefined' ? MSBlobBuilder : typeof MozBlobBuilder !== 'undefined' ? MozBlobBuilder : WebKitBlobBuilder;
                                                                                                                                           ^~~~~~~~~~~~~~
android\app\build\ASSETS\createBundleReleaseJsAndAssets\index.android.bundle:62251:190: warning: the variable "WebKitBlobBuilder" was not declared in function "createBlob"
            var Builder = typeof BlobBuilder !== 'undefined' ? BlobBuilder : typeof MSBlobBuilder !== 'undefined' ? MSBlobBuilder : typeof MozBlobBuilder !== 'undefined' ? MozBlobBuilder : WebKitBlobBuilder;
                                                                                                                                                                                             ^~~~~~~~~~~~~~~~~
android\app\build\ASSETS\createBundleReleaseJsAndAssets\index.android.bundle:62449:28: warning: the variable "btoa" was not declared in anonymous function " 2376#"
              var base64 = btoa(e.target.result || '');
                           ^~~~
android\app\build\ASSETS\createBundleReleaseJsAndAssets\index.android.bundle:62460:51: warning: the variable "atob" was not declared in function "_decodeBlob"
          var arrayBuff = _binStringToArrayBuffer(atob(encodedBlob.data));
                                                  ^~~~
android\app\build\ASSETS\createBundleReleaseJsAndAssets\index.android.bundle:63491:27: warning: the variable "localStorage" was not declared in function "isLocalStorageValid"
            return typeof localStorage !== 'undefined' && 'setItem' in localStorage && !!localStorage.setItem;
                          ^~~~~~~~~~~~
android\app\build\ASSETS\createBundleReleaseJsAndAssets\index.android.bundle:71736:25: warning: the variable "Atomics" was not declared in anonymous function " 2885#"
    '%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
                        ^~~~~~~
android\app\build\ASSETS\createBundleReleaseJsAndAssets\index.android.bundle:71752:38: warning: the variable "FinalizationRegistry" was not declared in anonymous function " 2885#"
    '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
                                     ^~~~~~~~~~~~~~~~~~~~
android\app\build\ASSETS\createBundleReleaseJsAndAssets\index.android.bundle:71777:35: warning: the variable "SharedArrayBuffer" was not declared in anonymous function " 2885#"
    '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,
                                  ^~~~~~~~~~~~~~~~~
android\app\build\ASSETS\createBundleReleaseJsAndAssets\index.android.bundle:71791:25: warning: the variable "WeakRef" was not declared in anonymous function " 2885#"
    '%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
                        ^~~~~~~
android\app\build\ASSETS\createBundleReleaseJsAndAssets\index.android.bundle:84321:31: warning: the variable "StopIteration" was not declared in anonymous function " 3629#"
  var $StopIteration = typeof StopIteration === 'object' ? StopIteration : null;
                              ^~~~~~~~~~~~~
android\app\build\ASSETS\createBundleReleaseJsAndAssets\index.android.bundle:278706:26: warning: Direct call to eval(), but lexical scope is not supported.
            workletFun = eval('(' + initData.code + '\n)');
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
android\app\build\ASSETS\createBundleReleaseJsAndAssets\index.android.bundle:307807:65: warning: the variable "Buffer" was not declared in function "convertValue"
        return typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value);
                                                                ^~~~~~
android\app\build\ASSETS\createBundleReleaseJsAndAssets\index.android.bundle:309827:20: warning: the variable "ActiveXObject" was not declared in function "ii"
          Wo = new ActiveXObject("htmlfile");
                   ^~~~~~~~~~~~~
android\app\build\ASSETS\createBundleReleaseJsAndAssets\index.android.bundle:320474:16: warning: the variable "Intl" was not declared in function "intlFormat"
    return new Intl.DateTimeFormat((_localeOptions = localeOptions) === null || _localeOptions === undefined ? undefined : _localeOptions.locale, formatOptions).format(date);
               ^~~~
android\app\build\ASSETS\createBundleReleaseJsAndAssets\index.android.bundle:374836:22: warning: the variable "Window" was not declared in function "getDefaultLoggers"
          if (typeof Window === 'undefined' && typeof WorkerGlobalScope === 'undefined' || typeof ((_b = (_a = globalObject === null || globalObject === undefined ? undefined : globalObject.console) === null || _a === undefined ? undefined : _a.log) === null || _b === undefined ? undefined : _b.apply) === 'function') {
                     ^~~~~~
android\app\build\ASSETS\createBundleReleaseJsAndAssets\index.android.bundle:374836:55: warning: the variable "WorkerGlobalScope" was not declared in function "getDefaultLoggers"
          if (typeof Window === 'undefined' && typeof WorkerGlobalScope === 'undefined' || typeof ((_b = (_a = globalObject === null || globalObject === undefined ? undefined : globalObject.console) === null || _a === undefined ? undefined : _a.log) === null || _b === undefined ? undefined : _b.apply) === 'function') {
                                                      ^~~~~~~~~~~~~~~~~
android\app\build\ASSETS\createBundleReleaseJsAndAssets\index.android.bundle:384761:22: warning: the variable "WebSocket" was not declared in anonymous function " 11251#"
          WebSocket: WebSocket,
                     ^~~~~~~~~
:app:createBundleReleaseJsAndAssets_SentryUpload_com.tryperdiem.wh.masalawok@2.4.1+231_231 FAILED
Error: spawn C:\Users\theah\Desktop\perdiem\node_modules\@sentry\cli\sentry-cli.exe ENOENT
    at ChildProcess._handle.onexit (node:internal/child_process:283:19)
    at onErrorNT (node:internal/child_process:476:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'spawn C:\\Users\\theah\\Desktop\\perdiem\\node_modules\\@sentry\\cli\\sentry-cli.exe',
  path: 'C:\\Users\\theah\\Desktop\\perdiem\\node_modules\\@sentry\\cli\\sentry-cli.exe',
  spawnargs: [
    'react-native',
    'gradle',
    '--bundle',
    'C:\\Users\\theah\\Desktop\\perdiem\\android\\app\\build\\ASSETS\\createBundleReleaseJsAndAssets\\index.android.bundle',
    '--sourcemap',
    'C:\\Users\\theah\\Desktop\\perdiem\\android\\app\\build\\generated\\sourcemaps\\react\\release\\index.android.bundle.map',
    '--release',
    'com.tryperdiem.wh.masalawok@2.4.1+231',
    '--dist',
    '231'
  ]
}

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:createBundleReleaseJsAndAssets_SentryUpload_com.tryperdiem.wh.masalawok@2.4.1+231_231'.
> 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.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
java.lang.StackOverflowError (no error message)

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

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 2m
60 actionable tasks: 55 executed, 5 up-to-date
theahmadzai commented 1 year ago

I was able to upload manually image with following commands

npx react-native bundle --dev false --platform android --entry-file index.js --reset-cache --bundle-output index.android.bundle --sourcemap-output index.android.bundle.map
npx sentry-cli releases files com.tryperdiem.wh@2.4.1+231 upload-sourcemaps --dist 231 --strip-prefix C:/Users/theah/github/perdieminc/white-label index.android.bundle index.android.bundle.map
krystofwoldrich commented 1 year ago

@theahmadzai Thank you for the details, look at the log, your issue seems to be different from the original.

It looks like the CLI binary didn't download C:\\Users\\theah\\Desktop\\perdiem\\node_modules\\@sentry\\cli\\sentry-cli.exe.

Could you try to reinstall your packages or only the @sentry/cli? You can try to execute C:\\Users\\theah\\Desktop\\perdiem\\node_modules\\@sentry\\cli\\scripts\\install.js to download the binary.

theahmadzai commented 1 year ago

@krystofwoldrich thank you for your reply, Just noticed we had --ignore-scripts flag in our CI due to which scripts were getting ignored. it's working now thank you so much

krystofwoldrich commented 1 year ago

@supmanyu Any updates on the original error?

supmanyu commented 1 year ago

I tried building the app on a colleague's device, as well as on the CI and also manually uploading sourcemaps from CLI. All three scenarios worked fine, so i re-setup the project again from scratch, which seems to have resolved the problem. We can close this issue for now, I'll update here if I'm able to recreate it again.

krystofwoldrich commented 1 year ago

Okay, thanks for the update, we appreciate it. Happy to hear it works now.

xiongxiongjiang commented 8 months ago

in react native 0.73.4

Adding http.verify_ssl = false to sentry.properties file

can help

rafaelsoncineduobox commented 5 months ago

Any news?

"react-native": "0.73.6",

krystofwoldrich commented 3 months ago

@rafaelsoncineduobox We were not able to reproduce the issue and some of the user confirmed the upload is working.

If you are running into similar error please open a new issue with the up to date information.