Content-Length: 314156 | pFad | https://github.com/flutter/flutter/issues/90210

87 Network errors when fetching dependencies via gradle turn into a massive spew of unclear text. · Issue #90210 · flutter/flutter · GitHub
Skip to content

Network errors when fetching dependencies via gradle turn into a massive spew of unclear text. #90210

@Hixie

Description

@Hixie

Consider for example: https://cirrus-ci.com/task/6022315478614016?logs=main#L205

Ideally, this should have resulted in one of the following:

Either something like the following (for non-fatal network errors, solved by retrying with jittered truncated exponential backoff until it works):

Running Gradle task 'assembleRelease'...
There are network issues attempting to contact jcenter.bintray.com, please stand by...
Issues resolved by retrying!
Running Gradle task 'assembleRelease'...                         1925.2s

...or something like the following (for fatal errors, where retrying forever is deemed a bad idea):

Running Gradle task 'assembleRelease'...
There are network issues attempting to contact jcenter.bintray.com, please stand by...
Could not obtain the following resource:
https://jcenter.bintray.com/io/flutter/armeabi_v7a_debug/1.0.0-f0826da7ef2d301eb8f4ead91aaf026aa2b52881/armeabi_v7a_debug-1.0.0-f0826da7ef2d301eb8f4ead91aaf026aa2b52881.pom
The server responded with "502 Bad Gateway".

Instead here is what we get:

FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:lintVitalRelease'.
> Could not resolve all artifacts for configuration ':app:releaseRuntimeClasspath'.
   > Could not resolve io.flutter:armeabi_v7a_release:1.0.0-f0826da7ef2d301eb8f4ead91aaf026aa2b52881.
     Required by:
         project :app
      > Could not resolve io.flutter:armeabi_v7a_release:1.0.0-f0826da7ef2d301eb8f4ead91aaf026aa2b52881.
         > Could not get resource 'https://jcenter.bintray.com/io/flutter/armeabi_v7a_release/1.0.0-f0826da7ef2d301eb8f4ead91aaf026aa2b52881/armeabi_v7a_release-1.0.0-f0826da7ef2d301eb8f4ead91aaf026aa2b52881.pom'.
            > Could not HEAD 'https://jcenter.bintray.com/io/flutter/armeabi_v7a_release/1.0.0-f0826da7ef2d301eb8f4ead91aaf026aa2b52881/armeabi_v7a_release-1.0.0-f0826da7ef2d301eb8f4ead91aaf026aa2b52881.pom'.
               > Read timed out
   > Could not resolve io.flutter:arm64_v8a_release:1.0.0-f0826da7ef2d301eb8f4ead91aaf026aa2b52881.
     Required by:
         project :app
      > Could not resolve io.flutter:arm64_v8a_release:1.0.0-f0826da7ef2d301eb8f4ead91aaf026aa2b52881.
         > Could not get resource 'https://jcenter.bintray.com/io/flutter/arm64_v8a_release/1.0.0-f0826da7ef2d301eb8f4ead91aaf026aa2b52881/arm64_v8a_release-1.0.0-f0826da7ef2d301eb8f4ead91aaf026aa2b52881.pom'.
            > Could not HEAD 'https://jcenter.bintray.com/io/flutter/arm64_v8a_release/1.0.0-f0826da7ef2d301eb8f4ead91aaf026aa2b52881/arm64_v8a_release-1.0.0-f0826da7ef2d301eb8f4ead91aaf026aa2b52881.pom'.
               > Read timed out
* 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 3m 34s
[!] Gradle threw an error while downloading artifacts from the network. Retrying to download...
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:lintVitalRelease'.
> Could not resolve all artifacts for configuration ':app:debugRuntimeClasspath'.
   > Could not resolve io.flutter:armeabi_v7a_debug:1.0.0-f0826da7ef2d301eb8f4ead91aaf026aa2b52881.
     Required by:
         project :app
      > Could not resolve io.flutter:armeabi_v7a_debug:1.0.0-f0826da7ef2d301eb8f4ead91aaf026aa2b52881.
         > Could not get resource 'https://jcenter.bintray.com/io/flutter/armeabi_v7a_debug/1.0.0-f0826da7ef2d301eb8f4ead91aaf026aa2b52881/armeabi_v7a_debug-1.0.0-f0826da7ef2d301eb8f4ead91aaf026aa2b52881.pom'.
            > Could not GET 'https://jcenter.bintray.com/io/flutter/armeabi_v7a_debug/1.0.0-f0826da7ef2d301eb8f4ead91aaf026aa2b52881/armeabi_v7a_debug-1.0.0-f0826da7ef2d301eb8f4ead91aaf026aa2b52881.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 59s
[!] Gradle threw an error while downloading artifacts from the network. Retrying to download...
Gradle task assembleRelease failed with exit code 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projecta: qualityA truly polished experiencedependency: androidAndroid team may need to help ust: gradle"flutter build" and "flutter run" on Androidteam-androidOwned by Android platform teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-androidTriaged by Android platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: https://github.com/flutter/flutter/issues/90210

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy