go
network_error
ai_generated
true
go: github.com/user/[email protected]: 读取 tcp 192.0.2.1:443->proxy.golang.org:443: 输入/输出超时
go: github.com/user/[email protected]: read tcp 192.0.2.1:443->proxy.golang.org:443: i/o timeout
ID: go/proxy-tls-handshake-timeout
80%修复率
82%置信度
0证据数
2024-05-20首次发现
版本兼容性
| 版本 | 状态 | 引入 | 弃用 | 备注 |
|---|---|---|---|---|
| 1.16 | active | — | — | — |
| 1.21 | active | — | — | — |
根因分析
与 Go 模块代理的网络连接问题,通常由防火墙、DNS 或代理临时故障引起。
English
Network connectivity issue to the Go module proxy, often due to firewall, DNS, or temporary proxy outage.
解决方案
-
80% 成功率
GOPROXY=direct go mod download
-
85% 成功率
GOPROXY=https://goproxy.cn,direct go mod download
无效尝试
常见但无效的做法:
-
100% 失败
Go does not have a direct timeout setting for GOPROXY; the timeout is OS-level and cannot be changed via Go env.
-
70% 失败
If the network issue is persistent (e.g., firewall), retry will keep failing.