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.

臭大佬 2020-07-27 15:57:47 9511
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.

问题

在拉取 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

这样,就不用翻墙了,
再次拉取

上一篇: 制作一个简易的exe包

下一篇: Docker 入门