braintree / braintree_android

Braintree SDK for Android
https://developer.paypal.com/braintree/docs/start/hello-client/android/v4
MIT License
409 stars 234 forks source link

502 Bad Gateway: Unable to load Maven meta-data from Bintray #81 #483

Closed latusdenis closed 2 years ago

latusdenis commented 2 years ago

Getting such an error, while building the app in release mode:

> Failed to list versions for com.facebook.react:react-native.
         > Unable to load Maven meta-data from https://cardinalcommerce.bintray.com/android/com/facebook/react/react-native/maven-metadata.xml.
            > Could not get resource 'https://cardinalcommerce.bintray.com/android/com/facebook/react/react-native/maven-metadata.xml'.
               > Could not GET 'https://cardinalcommerce.bintray.com/android/com/facebook/react/react-native/maven-metadata.xml'. Received status code 502 from server: Bad Gateway

build.gradle

buildscript {
    ext {
        buildToolsVersion = "29.0.2"
        minSdkVersion = 21
        compileSdkVersion = 29
        targetSdkVersion = 29
        supportLibVersion = "28.0.0"
        googlePlayServicesVersion = "11.0.0"
        googlePlayServicesLocationVersion = "17.0.0"
        appCompatVersion = "1.1.0"
    }
    repositories {
        google()
        mavenCentral()
        jcenter()
    }
    dependencies {
        classpath("com.android.tools.build:gradle:4.1.0")
        classpath("com.google.gms:google-services:4.3.10")
    }
}

allprojects {
    repositories {
        mavenCentral()
        mavenLocal()
        maven { url("$rootDir/../node_modules/react-native/android") }
        maven { url("$rootDir/../node_modules/jsc-android/dist") }
        google()
        maven { url 'https://www.jitpack.io' }
        jcenter()
        flatDir {
            dirs "$rootProject.projectDir/libs"
        }

        maven {
            url "$rootDir/../node_modules/@notifee/react-native/android/libs"
        }

        maven {
            url "https://cardinalcommerceprod.jfrog.io/artifactory/android"
            credentials {
                username 'braintree_team_sdk'
                password 'AKCp8jQcoDy2hxSWhDAUQKXLDPDx6NYRkqrgFLRc3qDrayg6rrCbJpsKKyMwaykVL8FWusJpp'
            }
        }
    }
}

The problem appeared without any code changes. Bintray status is major outage: https://isdown.app/integrations/bintray

Please advise, which steps do I need to perform, so I can successfully create release builds.

sarahkoop commented 2 years ago

@latusdenis which Braintree Android dependency (and version) are you including in your app?

The error message looks like it is trying to find the Cardinal Mobile SDK at https://cardinalcommerce.bintray.com/android, but our updated credentials (which you have included) use https://cardinalcommerceprod.jfrog.io/artifactory/android, because Bintray has been sunset, so it isn't entirely clear from the snippet provided where the Bintray URL is coming from.

latusdenis commented 2 years ago

@sarahkoop I'm using such package: https://github.com/wgltony/react-native-braintree-dropin-ui#readme

The bintray URL is not specified anywhere in the code, so it seems like the above library is trying to reach this URL. No code changes were applied, it happened just a day ago.

Other users are also reporting similar problem: https://github.com/opentok/opentok-react-native/issues/557 https://github.com/facebook/react-native/issues/31165

sarahkoop commented 2 years ago

We do not own or offer support for that library, so we will not be able to investigate this issue. I'd recommend opening an issue with that library.

Seanmclem commented 2 years ago

yeah I just had to update react-native-braintree-dropin-ui to the latest version, with something like yarn upgrade react-native-braintree-dropin-ui