ui-lottie icon indicating copy to clipboard operation
ui-lottie copied to clipboard

Received status code 502 from server: Bad Gateway

Open relez opened this issue 2 years ago • 12 comments

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

relez avatar Jan 12 '22 21:01 relez

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

ShyshkovOleg avatar Jan 12 '22 21:01 ShyshkovOleg

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.

bradmartin avatar Jan 12 '22 22:01 bradmartin

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?

farfromrefug avatar Jan 12 '22 22:01 farfromrefug

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?

relez avatar Jan 12 '22 22:01 relez

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

farfromrefug avatar Jan 12 '22 22:01 farfromrefug

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?

relez avatar Jan 12 '22 22:01 relez

yes that must be it !

farfromrefug avatar Jan 12 '22 23:01 farfromrefug

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

farfromrefug avatar Jan 12 '22 23:01 farfromrefug

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

timoschlueter avatar Jan 17 '22 07:01 timoschlueter

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

farfromrefug avatar Jan 17 '22 08:01 farfromrefug

will do. thank you!

timoschlueter avatar Jan 17 '22 08:01 timoschlueter

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

relez avatar Jan 24 '22 03:01 relez