Skip to content

Getting HTTP 429 When Downloading zlib on Windows Builds #1626

Closed

Description

@TimGustafson

Description

I use Sentry in my Flutter app, and have for a long time. When building on Windows, I've started to get 429 errors today, which seem to point to Google thinking traffic from my subnet is "suspicious", even though I'm the only person on my IP and this has been working for well over a year now. Also, this is reproducible across multiple machines on different networks, suggesting this is a systemic issue with googlesource availability rather than an IP-specific block.

It seems somewhat fragile to rely on a fork of zlib that lives on Google's servers, instead of using the official zlib Git repo. I'm not sure if this is required, or just an artifact of having been forked from crashpad, but it might be worth considering switching to the original zlib library if possible.

When does the problem happen

  • During build
  • During run-time
  • When capturing a hard crash

Environment

  • OS: Windows 11 64 Bit
  • Compiler: MSBuild version 18.0.5+e22287bf1

Steps To Reproduce

Build a Flutter app on Windows with Sentry enabled.

Log output

Resolving dependencies... 
Downloading packages... 
  _fe_analyzer_shared 93.0.0 (98.0.0 available)
  analyzer 10.0.1 (12.0.0 available)
  crypto_keys 0.3.0+1 (0.3.0+2 available)
  dart_style 3.1.7 (3.1.8 available)
  jni 0.14.2 (1.0.0 available)
  meta 1.17.0 (1.18.2 available)
  passkeys 2.8.2 (2.18.0 available)
  pointycastle 3.9.1 (4.0.0 available)
  vector_math 2.2.0 (2.3.0 available)
  win32 5.15.0 (6.0.0 available)
  win32_registry 2.1.0 (3.0.2 available)
Got dependencies!
11 packages have newer versions incompatible with dependency constraints.
Try `flutter pub outdated` for more information.
Building Windows application...
MSBuild version 18.0.5+e22287bf1 for .NET Framework

  1>Checking Build System
  1>Creating directories for 'sentry-native-populate'
  Performing download step (git clone) for 'sentry-native-populate'
  Cloning into 'sentry-native-src'...
  HEAD is now at 490ca8cb release: 0.13.3
  Submodule 'external/benchmark' (https://github.com/google/benchmark.git) registered for path 'external/benchmark'
  Submodule 'external/breakpad' (https://github.com/getsentry/breakpad.git) registered for path 'external/breakpad'
  Submodule 'external/crashpad' (https://github.com/getsentry/crashpad.git) registered for path 'external/crashpad'
  Submodule 'external/libunwindstack-ndk' (https://github.com/getsentry/libunwindstack-ndk) registered for path 'external/libunwindstack-ndk'
  Submodule 'external/third_party/lss' (https://chromium.googlesource.com/linux-syscall-support) registered for path 'external/third_party/lss'
  Cloning into 'C:/Users/us/src/project/app_name/build/windows/x64/_deps/sentry-native-src/external/benchmark'...
  Cloning into 'C:/Users/us/src/project/app_name/build/windows/x64/_deps/sentry-native-src/external/breakpad'...
  Cloning into 'C:/Users/us/src/project/app_name/build/windows/x64/_deps/sentry-native-src/external/crashpad'...
  Cloning into 'C:/Users/us/src/project/app_name/build/windows/x64/_deps/sentry-native-src/external/libunwindstack-ndk'...
  Cloning into 'C:/Users/us/src/project/app_name/build/windows/x64/_deps/sentry-native-src/external/third_party/lss'...
  Submodule path 'external/benchmark': checked out '48f5cc21bac647a8a64e9787cb84f349e334b7ac'
  Submodule path 'external/breakpad': checked out '25b6b727af49fa383161e7dba4a82ab0661b69b8'
  Submodule path 'external/crashpad': checked out 'eb5fa6e8576e79113b21296bd6af7e2a542839db'
  Submodule 'third_party/lss/lss' (https://chromium.googlesource.com/linux-syscall-support) registered for path 'external/crashpad/third_party/lss/lss'
  Submodule 'third_party/mini_chromium/mini_chromium' (https://github.com/getsentry/mini_chromium.git) registered for path 'external/crashpad/third_party/mini_chromium/mini_chromium'        
  Submodule 'third_party/zlib/zlib' (https://chromium.googlesource.com/chromium/src/third_party/zlib) registered for path 'external/crashpad/third_party/zlib/zlib'
  Cloning into 'C:/Users/us/src/project/app_name/build/windows/x64/_deps/sentry-native-src/external/crashpad/third_party/lss/lss'...
  Cloning into 'C:/Users/us/src/project/app_name/build/windows/x64/_deps/sentry-native-src/external/crashpad/third_party/mini_chromium/mini_chromium'...
  Cloning into 'C:/Users/us/src/project/app_name/build/windows/x64/_deps/sentry-native-src/external/crashpad/third_party/zlib/zlib'...
  fatal: unable to access 'https://chromium.googlesource.com/chromium/src/third_party/zlib/': The requested URL returned error: 403
  fatal: clone of 'https://chromium.googlesource.com/chromium/src/third_party/zlib' into submodule path 'C:/Users/us/src/project/app_name/build/windows/x64/_deps/sentry-native-src/external/crashpad/third_party/zlib/zlib' failed
  Failed to clone 'third_party/zlib/zlib'. Retry scheduled
  Cloning into 'C:/Users/us/src/project/app_name/build/windows/x64/_deps/sentry-native-src/external/crashpad/third_party/zlib/zlib'...
  fatal: unable to access 'https://chromium.googlesource.com/chromium/src/third_party/zlib/': The requested URL returned error: 403
  fatal: clone of 'https://chromium.googlesource.com/chromium/src/third_party/zlib' into submodule path 'C:/Users/us/src/project/app_name/build/windows/x64/_deps/sentry-native-src/external/crashpad/third_party/zlib/zlib' failed
  Failed to clone 'third_party/zlib/zlib' a second time, aborting
  fatal: Failed to recurse into submodule path 'external/crashpad'
  Submodule path 'external/libunwindstack-ndk': checked out '284202fb1e42dbeba6598e26ced2e1ec404eecd1'
  Submodule path 'external/third_party/lss': checked out 'ed31caa60f20a4f6569883b2d752ef7522de51e0'
  CMake Error at sentry-native-subbuild/sentry-native-populate-prefix/tmp/sentry-native-populate-gitclone.cmake:75 (message):
    Failed to update submodules in:
    'C:/Users/us/src/project/app_name/build/windows/x64/_deps/sentry-native-src'

Activity

  1. added
    Bug
    Native
    on Apr 6, 2026
  2. linear-code commented on Apr 6, 2026

    @linear-code
  3. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on Apr 6, 2026
  4. EndrII commented on Apr 6, 2026

    @EndrII

    I confirm

    fatal: unable to access 'https://chromium.googlesource.com/chromium/src/third_party/zlib/': The requested URL returned error: 403
    
  5. EndrII commented on Apr 6, 2026

    @EndrII

    This is a Google issue, I think it will be resolved soon, but this repository should depend on mirror repositories it creates itself to avoid similar problems in the future.

  6. supervacuus commented on Apr 6, 2026

    @supervacuus
    Collaborator

    duplicate of: #1625

    This is a Google issue, I think it will be resolved soon, but this repository should depend on mirror repositories it creates itself to avoid similar problems in the future.

    This just shifts the problem to another upstream server (GitHub already had a considerable number of outages this year, leading to similar or worse problems). The risk of upstream repositories becoming unavailable does not go away by switching to another Git host; it is inherent.

    Please use the release ZIPs (which include all submodule contents) whenever possible to keep your build and deployment chains independent of upstream source availability.

  7. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on Apr 6, 2026
  8. TimGustafson commented on Apr 6, 2026

    @TimGustafson
    Author

    This just shifts the problem to another upstream server (GitHub already had a considerable number of outages this year, leading to similar or worse problems). The risk of upstream repositories becoming unavailable does not go away by switching to another Git host; it is inherent.

    Sure, GitHub has, and every service provider does from time to time, but companies like Google are notorious for changing their minds about access permissions and for their priorities not always aligning with the developer community, whereas GitHub is a company dedicated to building software and making developer's lives easier. IMHO, GitHub is the more trustworthy and reliable source in this case. And anyhow, if GitHub is down, I imagine that breaks nearly every build pipeline anyhow because I'm guessing the majority of projects rely on GitHub for source code, and/or are using GitHub runners.

    Please use the release ZIPs (which include all submodule contents) whenever possible to keep your build and deployment chains independent of upstream source availability.

    While I appreciate that this might fix the problem, it also introduces some hackyness to build pipelines and is itself fragile. If this is truly the fix, then it should be rolled into the Dart/Flutter Sentry packages rather than relying on everyone to change their build pipelines to do it.

    Just my $0.02. :)

  9. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on Apr 6, 2026
  10. EndrII commented on Apr 6, 2026

    @EndrII

    This just shifts the problem to another upstream server (GitHub already had a considerable number of outages this year, leading to similar or worse problems). The risk of upstream repositories becoming unavailable does not go away by switching to another Git host; it is inherent.

    You are failing to account for the fact that when sources are equally reliable (or unreliable), their diversity only exacerbates the situation. The chance of such issues occurring doubles with every new dependency host. To minimize damage, you should use only one provider — then stability will equal the stability of the chosen service. Currently, stability is the product of all services involved in the dependency chain, which is significantly lower than in the first case.

    I understand your opinion and you are right — there will be no guarantees in either case. However, by moving all dependencies to your GitHub account, you guarantee that there will be no surprises from the outside (other than GitHub itself). Moreover, if GitHub fails, no one will open an issue in your repository, as it will be obvious that it is a single point of failure and the project itself and its structure are not to blame. In this case, however, the project and its structure are the cause of the problem. Despite the fact that work is being carried out on Google servers, Google is not obliged to ensure the stability of GitHub services. Still, a complete move to GitHub would be the better of two evils.

  11. 13 remaining items

  12. MichaelVoelkel commented on Apr 7, 2026

    @MichaelVoelkel

    Btw. for me it works on windows but not on my mac build machine but not my mac mini and also not on my linux machine (all same IP). SUPER weird... And yeah, it's been 24hrs now at least and Google doesn't fix it so far hm

    This works because you had the repository cached locally, the codebase itself didn't move, which means Git can easily grab what it needs locally.

    I can clear everything and get it from scratch. I don't think, git caches something if you clone --recurse into a brand new directory?

  13. EndrII commented on Apr 7, 2026

    @EndrII

    I can clear everything and get it from scratch. I don't think, git caches something if you clone --recurse into a brand new directory?

    No, git caches all submodule repositories into the main repository including recursive ones - you can test this by trying, cloning a completely new repository on the same machine (where everything still works) and getting an error with zlib.

  14. MichaelVoelkel commented on Apr 7, 2026

    @MichaelVoelkel

    I can clear everything and get it from scratch. I don't think, git caches something if you clone --recurse into a brand new directory?

    No, git caches all submodule repositories into the main repository including recursive ones - you can test this by trying, cloning a completely new repository on the same machine (where everything still works) and getting an error with zlib.

    Yes, and that is my point, if I understand you correctly.

    On some machines in my network it works and on others it doesn't. And "works" or "not work" is always a case where I freshly clone recursively, so I would be pretty sure I eradicated any cache possibility here. Unless git has somewhere a global cache (but as I understand your comment it has not and it would also be new to me)

  15. brandonguigo commented on Apr 7, 2026

    @brandonguigo

    same when building a Flutter app on Linux

  16. SlySven commented on Apr 7, 2026

    @SlySven

    It is a bit of a twisty path to get down to the place where the problem is:
    The project I am on uses sentry-native as a git submodule

    sentry-native uses Google Chrome's crashpad as a git submodule

    Google Chrome's crashpad uses zlib and lss as git submodules - BUT those submodules are local (to them) clones (I imagine) held at:

    • https://chromium.googlesource.com/chromium/src/third_party/zlib
    • https://chromium.googlesource.com/linux-syscall-support

    And right now the first of those two (the zlib one) is saying:

    We're sorry...

    ... but your computer or network may be sending automated queries. To protect our users, we can't process your request right now.
    See Google Help for more information.

    So, ironically, it is crashpad being built using local copies of dependencies (as is being recommended here) that is borking things for outsiders. I'm wondering whether if one were to dive into the crashpad submodule and hack its .gitmodules file to point to the original repositories that that would work for us outsiders - I think it might provided that crashpad isn't using locally modified versions.

  17. supervacuus commented on Apr 7, 2026

    @supervacuus
    Collaborator

    0.13.5 was just released, which updates the affected submodules to use GitHub mirrors.

    Downstream SDK updates will follow, but for Dart/Flutter, it looks like the ZIP package will be used instead of exposing the repository's availability and structure.

    This means:

    • If you depend on sentry-native directly and must keep direct repository access, you can use the release tag/commit, and all submodules will resolve to GitHub mirror URLs instead of Google-hosted sources.
    • If you use sentry-native indirectly via a downstream SDK, please follow the releases there. These SDKs will either update to 0.13.5 or replace the mechanism with a ZIP package (which makes them independent of that particular change).
    • If you have an existing local checkout for development (i.e., you don't do a fresh clone), you must sync the new submodule URLs after pulling the update:
      git fetch origin
      git checkout 0.13.5
      git submodule sync --recursive
      git submodule update --init --recursive
      
      Without sync, your local checkout will still try to access the old Google-hosted URLs, even though .gitmodules has been updated.
  18. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on Apr 7, 2026
  19. TimGustafson commented on Apr 7, 2026

    @TimGustafson
    Author

    Thank you so much! I was able to build with the new version tonight.

  20. markushi commented on Apr 8, 2026

    @markushi
    Member

    Another quick update: It seems like the chromium repos are up again, so if your build suddenly works again without changing anything, don't be surprised 😉

    We still encourage everyone to upgrade to 0.13.5, as this version offers a small resilience advantage. On top of that please consider using the release zip source bundles in favor of using sentry-native as a git submodule, as these bundles already contain all sources for a successful build (and can easily be cached).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugNative

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions