Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
latusdenis opened this issue Dec 10, 2021 · 4 comments
Closed

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

latusdenis opened this issue Dec 10, 2021 · 4 comments

Comments

@latusdenis
Copy link

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
Copy link
Contributor

@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
Copy link
Author

@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:
opentok/opentok-react-native#557
facebook/react-native#31165

@sarahkoop
Copy link
Contributor

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants