webrtc-sdk/webrtc

Bintray/Jcenter 502 Bad Gateway

kNoAPP opened this issue · 2 comments

I'm not sure whether to report this in Flutter WebRTC or here in the WebRTC-sdk. @cloudwebrtc You'll probably want to be generally aware of this too.

Describe the bug

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:mergeAppCenterReleaseAssets'.
> Could not resolve all files for configuration ':app:appCenterReleaseRuntimeClasspath'.
   > Could not resolve io.flutter:armeabi_v7a_release:1.0.0-890a5fca2e34db413be624fc83aeea8e61d42ce6.
     Required by:
         project :app
      > Could not resolve io.flutter:armeabi_v7a_release:1.0.0-890a5fca2e34db413be624fc83aeea8e61d42ce6.
         > Could not get resource 'https://plugins.gradle.org/m2/io/flutter/armeabi_v7a_release/1.0.0-890a5fca2e34db413be624fc83aeea8e61d42ce6/armeabi_v7a_release-1.0.0-890a5fca2e34db413be624fc83aeea8e61d42ce6.pom'.
            > Could not HEAD 'https://jcenter.bintray.com/io/flutter/armeabi_v7a_release/1.0.0-890a5fca2e34db413be624fc83aeea8e61d42ce6/armeabi_v7a_release-1.0.0-890a5fca2e34db413be624fc83aeea8e61d42ce6.pom'. Received status code 502 from server: Bad Gateway
   > Could not resolve io.flutter:arm64_v8a_release:1.0.0-890a5fca2e34db413be624fc83aeea8e61d42ce6.
     Required by:
         project :app
      > Could not resolve io.flutter:arm64_v8a_release:1.0.0-890a5fca2e34db413be624fc83aeea8e61d42ce6.
         > Could not get resource 'https://plugins.gradle.org/m2/io/flutter/arm64_v8a_release/1.0.0-890a5fca2e34db413be624fc83aeea8e61d42ce6/arm64_v8a_release-1.0.0-890a5fca2e34db413be624fc83aeea8e61d42ce6.pom'.
            > Could not HEAD 'https://jcenter.bintray.com/io/flutter/arm64_v8a_release/1.0.0-890a5fca2e34db413be624fc83aeea8e61d42ce6/arm64_v8a_release-1.0.0-890a5fca2e34db413be624fc83aeea8e61d42ce6.pom'. Received status code 502 from server: Bad Gateway
   > Could not resolve io.flutter:x86_64_release:1.0.0-890a5fca2e34db413be624fc83aeea8e61d42ce6.
     Required by:
         project :app
      > Could not resolve io.flutter:x86_64_release:1.0.0-890a5fca2e34db413be624fc83aeea8e61d42ce6.
         > Could not get resource 'https://plugins.gradle.org/m2/io/flutter/x86_64_release/1.0.0-890a5fca2e34db413be624fc83aeea8e61d42ce6/x86_64_release-1.0.0-890a5fca2e34db413be624fc83aeea8e61d42ce6.pom'.
            > Could not HEAD 'https://jcenter.bintray.com/io/flutter/x86_64_release/1.0.0-890a5fca2e34db413be624fc83aeea8e61d42ce6/x86_64_release-1.0.0-890a5fca2e34db413be624fc83aeea8e61d42ce6.pom'. Received status code 502 from server: Bad Gateway
   > Could not resolve com.github.webrtc-sdk:android:93.4577.01.
     Required by:
         project :app > project :flutter_webrtc
      > Skipped due to earlier error
      > Could not resolve com.github.webrtc-sdk:android:93.4577.01.
         > Could not get resource 'https://jcenter.bintray.com/com/github/webrtc-sdk/android/93.4577.01/android-93.4577.01.pom'.
            > Could not GET 'https://jcenter.bintray.com/com/github/webrtc-sdk/android/93.4577.01/android-93.4577.01.pom'. Received status code 502 from server: Bad Gateway

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

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

BUILD FAILED in 1m 45s
Running Gradle task 'bundleRelease'...                            106.7s
[!] Gradle threw an error while downloading artifacts from the network. Retrying to download...
FLUTTER_ROOT: C:\flutter

FAILURE: Build failed with an exception.

            > Could not GET 'https://jcenter.bintray.com/com/github/webrtc-sdk/android/93.4577.01/android-93.4577.01.pom'. Received status code 502 from server: Bad Gateway

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

* Get more help at https://help.gradle.org
BUILD FAILED in 21s
Running Gradle task 'bundleRelease'...                             21.9s[!] Gradle threw an error while downloading artifacts from the network. Retrying to download...
Gradle task bundleRelease failed with exit code 1

To Reproduce
Discovered while attempting to run flutter build appbundle with Flutter WebRTC as a dependency. Or, visit the WebRTC pom in Bintray. Or just the root domain itself https://jcenter.bintray.com/. You'll notice a 502 Gateway Error. The required dependencies fail to download.

Screenshot 2022-01-12 103029

Expected behavior
The required dependencies succeed downloading.

Platform information
N/A - Happens everywhere.

Notes
This issue is most likely temporary and the outage will be restored soon. However, it looks like jcenter/bintray are read-only repositories right now. While the company plans to run the repository indefinitely this way, its clear interruptions like this can still continue to occur. If possible, consider migrating dependencies away from this service.

I think webrtc-sdk is not uploaded to Bintray/Jcenter , please make sure to add jitpack source

How to use

Add it in your root build.gradle at the end of repositories:

  allprojects {
    repositories {
      ...
      maven { url 'https://jitpack.io' }
    }
  }

Step 2. Add the dependency

  dependencies {
    implementation 'com.github.webrtc-sdk:android:93.4577.01'
  }

had same issue yesterday, already resolved