go
network_error
ai_generated
true
go: 代理请求过多: 429 Too Many Requests
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
80%修复率
84%置信度
0证据数
2025-07-01首次发现
版本兼容性
| 版本 | 状态 | 引入 | 弃用 | 备注 |
|---|---|---|---|---|
| 1.20 | active | — | — | — |
| 1.21 | active | — | — | — |
| 1.22 | active | — | — | — |
根因分析
Go 模块代理因短时间内请求过多而对您的 IP 进行了速率限制。
English
The Go module proxy has rate-limited your IP due to excessive requests in a short period.
解决方案
-
80% 成功率 Wait for the rate limit window to expire (typically a few minutes).
Pause all Go commands for 5-10 minutes, then retry.
-
90% 成功率 Use a different proxy or direct source with GOPROXY=direct.
Set 'export GOPROXY=direct' to bypass the proxy and fetch directly from VCS.
无效尝试
常见但无效的做法:
-
Increasing parallelism in build with -p flag.
100% 失败
More parallel requests will worsen the rate limit.
-
Using a different proxy without waiting.
50% 失败
If the same IP is used, the rate limit may still apply.