Repository navigation
Description
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'
Metadata
Metadata
Assignees
Projects
- StatusShow more project fieldsNo status
Activity
linear-code commentedon Apr 6, 2026
NATIVE-179
EndrII commentedon Apr 6, 2026
I confirm
EndrII commentedon Apr 6, 2026
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.
supervacuus commentedon Apr 6, 2026
duplicate of: #1625
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.
TimGustafson commentedon Apr 6, 2026
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.
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. :)
EndrII commentedon Apr 6, 2026
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.
13 remaining items
MichaelVoelkel commentedon Apr 7, 2026
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?
EndrII commentedon Apr 7, 2026
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.
MichaelVoelkel commentedon Apr 7, 2026
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)
brandonguigo commentedon Apr 7, 2026
same when building a Flutter app on Linux
Skip sentry-native submodules to fix CI build
Fix route highlight not updating when muting selected block (#4)
SlySven commentedon Apr 7, 2026
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
And right now the first of those two (the zlib one) is saying:
So, ironically, it is
crashpadbeing 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.gitmodulesfile 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.supervacuus commentedon Apr 7, 2026
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:
sentry-nativedirectly 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.sentry-nativeindirectly via a downstream SDK, please follow the releases there. These SDKs will either update to0.13.5or replace the mechanism with a ZIP package (which makes them independent of that particular change).sync, your local checkout will still try to access the old Google-hosted URLs, even though.gitmoduleshas been updated.TimGustafson commentedon Apr 7, 2026
Thank you so much! I was able to build with the new version tonight.
markushi commentedon Apr 8, 2026
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).Fix route highlight not updating when muting selected block (#4)
Fix route highlight not updating when muting selected block (#4)