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

Received status code 502 from server: Bad Gateway #94

Open
relez opened this issue Jan 12, 2022 · 12 comments
Open

Received status code 502 from server: Bad Gateway #94

relez opened this issue Jan 12, 2022 · 12 comments

Comments

@relez
Copy link

relez commented Jan 12, 2022

Looks like the server bintray.com is going inactive, I am having this error:

Could not determine the dependencies of task ':verifyReleaseResources'.
> Could not resolve all task dependencies for configuration ':releaseRuntimeClasspath'.
   > Could not resolve com.airbnb.android:lottie:4.2.+.
     Required by:
         project :
      > Failed to list versions for com.airbnb.android:lottie.
         > Unable to load Maven meta-data from https://jcenter.bintray.com/com/airbnb/android/lottie/maven-metadata.xml.
            > Could not HEAD 'https://jcenter.bintray.com/com/airbnb/android/lottie/maven-metadata.xml'. Received status code 502 from server: Bad Gateway
@ShyshkovOleg
Copy link

ShyshkovOleg commented Jan 12, 2022

Same from my side. @bradmartin, please take a look.
Platform: Android,
Plugin version: @latest(4.3.3)
Screen Shot 2022-01-12 at 11 35 47 PM

@bradmartin
Copy link
Member

I think jcenter is dead or offline... not sure exactly. Haven't had chance to look into this, but might just need to point to a new location for this.

@farfromrefug
Copy link
Member

the issue might not be on this plugin side. it does not define the repositories
not sure but could the cli be trying to use jcenter?

@relez
Copy link
Author

relez commented Jan 12, 2022

Looking at build.gradle file I see the jcenter() multipla times which is obsolete by now:

...
allprojects {
    repositories {
        google()
        jcenter()
    }
    beforeEvaluate { project ->
        if (rootProject.hasProperty("userDefinedGradleProperties")) {
            rootProject.ext.userDefinedGradleProperties.each { entry ->
                def propertyName = entry.getKey()
                def propertyValue = entry.getValue()
                project.ext.set(propertyName, propertyValue)
            }
        }

    }
}
...

Maybe is @nativescript/android packaged what should be updated?

@farfromrefug
Copy link
Member

@relez actually i might not have the issue because i use ns that i build from source. let s ask on discord

@relez
Copy link
Author

relez commented Jan 12, 2022

I updated to @nativescript/android 8.2.0-alpha-9 and @nativescript/core 8.2.0-alpha.3 and worked! Looking at build.gradle file inside platforms/android I see that the file has been modified to use mavenCentral() instead of jcenter(), so I think the verison 8.1.1 of @nativescript/android needs an update, right?

@farfromrefug
Copy link
Member

yes that must be it !

@farfromrefug
Copy link
Member

new android runtime in alpha. will.see if we can do a 8.1.2

@timoschlueter
Copy link

Would be great, @farfromrefug. I am hesitant of using an alpha-runtime in our production apps. :)

@farfromrefug
Copy link
Member

@timoschlueter ask for it on discord. I am not the one making runtime releases

@timoschlueter
Copy link

will do. thank you!

@relez
Copy link
Author

relez commented Jan 24, 2022

I get this error when I try to build for Android, looks like the plugin is trying to reach https://jcenter.bintray.com, see the image. Is it related to this plugin?
Screen Shot 2022-01-23 at 9 00 31 PM

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

5 participants