报错截图:

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

 

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

  

搞定

相关文章:

  • 2021-05-09
  • 2022-12-23
  • 2022-01-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-04
猜你喜欢
  • 2021-05-20
  • 2021-08-30
  • 2021-10-17
  • 2021-04-27
  • 2022-01-22
  • 2023-02-13
  • 2021-05-26
相关资源
相似解决方案