一、问题二、分析
一、问题
用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=
把它关掉
go env -w GOSUMDB=off
代理推荐
go env -w GOPROXY=,direct
再次执行命令go build
,成功~
如果觉得《dial tcp 34.64.4.113:443: connectex: A connection attempt failed because the connected party did not》对你有帮助,请点赞、收藏,并留下你的观点哦!