菜单 学习猿地 - LMONKEY

VIP

开通学习猿地VIP

尊享10项VIP特权 持续新增

知识通关挑战

打卡带练!告别无效练习

接私单赚外块

VIP优先接,累计金额超百万

学习猿地私房课免费学

大厂实战课仅对VIP开放

你的一对一导师

每月可免费咨询大牛30次

领取更多软件工程师实用特权

入驻
483
0

golang运行项目时报错:dial tcp 172.217.27.145:443: c onnectex: A connection attempt failed because the connected party did not properly respond after a period of time

原创
05/13 14:22
阅读数 45543

报错截图:

 

go: github.com/PuerkitoBio/goquery@v1.6.0: Get "https://proxy.golang.org/github.com/%21puerkito%21bio/goquery/@v/v1.6.0.mod": dial tcp 172.217.27.145:443: c
onnectex: 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.

 产生原因:

            你可以试着访问一下proxy.golang.org,怎么样,访问不了吧,没错,这是被我们伟大的长城防火墙给屏蔽了,你需要改成我们国内可用的代理地址

解决办法:

          重新设置代理

go env -w GOPROXY=https://goproxy.cn

  

搞定

发表评论

0/200
483 点赞
0 评论
收藏
为你推荐 换一批