# go: 代理请求过多: 429 Too Many Requests

- **ID:** `go/proxy-rate-limit`
- **领域:** go
- **类别:** network_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

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

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 1.20 | active | — | — |
| 1.21 | active | — | — |
| 1.22 | active | — | — |

## 解决方案

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

## 无效尝试

- **Increasing parallelism in build with -p flag.** — More parallel requests will worsen the rate limit. (100% 失败率)
- **Using a different proxy without waiting.** — If the same IP is used, the rate limit may still apply. (50% 失败率)
