Skip to content

Getting HTTP 429 When Downloading zlib on Windows Builds #1626

@TimGustafson

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugsomething isn't working as it shouldNativeplatform label
    No fields configured for issues without a type.

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions