dial tcp 34.64.4.113:443: connectex: A connection attempt failed because the connected party did not
- 一、问题
- 二、分析
一、问题
用 go build 创建项目,拉取go第三方扩展包的时候报如下错误:
dial tcp 34.64.4.113:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

二、分析
查看 GOSUMDB 的配置
go env

最后是因为:set GOSUMDB=sum.golang.org
把它关掉
go env -w GOSUMDB=off
代理推荐
go env -w GOPROXY=https://goproxy.cn,direct
再次执行命令 go build,成功~
本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!
