我是靠谱客的博主 明亮宝马,这篇文章主要介绍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
,成功~
最后
以上就是明亮宝马最近收集整理的关于dial tcp 34.64.4.113:443: connectex: A connection attempt failed because the connected party did not一、问题二、分析的全部内容,更多相关dial内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复