我是靠谱客的博主 糟糕鸡翅,这篇文章主要介绍Golang下载资源编译错误 connection attempt failed because the connected party did not properly,现在分享给大家,希望可以做个参考。
2022.10.15自主学习GoLang下载Mysql包时报编译错误
报错如下:
go: module github.com/go-sql-driver/mysql: Get "https://proxy.golang.org/github.com/go-sql-driver/mysql/@v/list": dial tcp 172.217.160.81: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 env -w GOPROXY=https://goproxy.cn
最后
以上就是糟糕鸡翅最近收集整理的关于Golang下载资源编译错误 connection attempt failed because the connected party did not properly的全部内容,更多相关Golang下载资源编译错误内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复