go network_error ai_generated true

go: github.com/example/[email protected]: reading https://proxy.golang.org/github.com/example/mod/@v/v1.0.0.mod: 429 Too Many Requests

ID: go/proxy-rate-limit

Also available as: JSON · Markdown · 中文
80%Fix Rate
84%Confidence
0Evidence
2025-07-01First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
1.20 active
1.21 active
1.22 active

Root Cause

The Go module proxy has rate-limited your IP due to excessive requests in a short period.

generic

中文

Go 模块代理因短时间内请求过多而对您的 IP 进行了速率限制。

Workarounds

  1. 80% success Wait for the rate limit window to expire (typically a few minutes).
    Pause all Go commands for 5-10 minutes, then retry.
  2. 90% success Use a different proxy or direct source with GOPROXY=direct.
    Set 'export GOPROXY=direct' to bypass the proxy and fetch directly from VCS.

Dead Ends

Common approaches that don't work:

  1. Increasing parallelism in build with -p flag. 100% fail

    More parallel requests will worsen the rate limit.

  2. Using a different proxy without waiting. 50% fail

    If the same IP is used, the rate limit may still apply.