Skip to content

Android/JVM deps throw GET returned 429 Too Many Requests #844

@KVSRoyal

Description

@KVSRoyal

Describe the bug

Android builds sometimes fail locally and in CI/CD with a GET returned 429 Too Many Requests error when Bazel attempts to download a dependency from android.googlesource.com.

To Reproduce

Run the Android CI pipeline on CircleCI. The build fails during Bazel's dependency fetch step with the following error:

ERROR: /home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/external/rules_android+/src/tools/java/com/google/devtools/build/android/dexer/BUILD:15:12: @@rules_android+//src/tools/java/com/google/devtools/build/android/dexer:DexFileSplitter depends on @@rules_android++com_android_dex_extension+com_android_dex//:dex in repository @@rules_android++com_android_dex_extension+com_android_dex which failed to fetch. no such package '@@rules_android++com_android_dex_extension+com_android_dex//': java.io.IOException: Error downloading [https://android.googlesource.com/platform/dalvik/+archive/5a81c499a569731e2395f7c8d13c0e0d4e17a2b6.tar.gz] to /home/circleci/.cache/bazel/_bazel_circleci/.../5a81c499a569731e2395f7c8d13c0e0d4e17a2b6.tar.gz: GET returned 429 Too Many Requests

Expected behavior

The Bazel dependency fetch should succeed and not crash android builds.

Screenshots

Not really screenshots, but build links:

Environment:

  • OS: [e.g. iOS] er, any? Both CI/CD and my local MacOS 26
  • Browser [e.g. chrome, safari]: N/A

Additional context

  • The rules_android team has already merged a fix to use a mirror, but it hasn't been released yet.
  • A patch was applied to unblock in this PR. It should be removed once we can upgrade to use the rules_android fix

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions