Solve the golang compilation prompt dial tcp 172.217.160.113:443: connectex: A connection attempt failed
Don't say much nonsense, just start talking
Many newbies often encounter such errors when compiling Go
module ***: Get “/***”: dial tcp 172.217.160.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.
You can try to access it, how about it, it can't be accessed, yes, this is blocked by our great Great Wall firewall, you need to change it to our domestic available proxy address
Execute directly on the command line
go env -w GOPROXY=
Then try to execute your go command again, it's done
Supplement: When golang downloads the package dial tcp 142.251.43.17:443: Resolved when i/o timeout
When the above problem occurs, not every package will do it. Some packages will be like this if they are not downloaded successfully.
It's very simple, some packages will have problems downloading in different agents
goproxy /zh/ Qiniu Cloud Alibaba Cloud /goproxy/
Try switching these proxy addresses
This is the article about solving golang compilation tips dial tcp 172.217.160.113:443: connectex: A connection attempt failed. This is all about more related golang compilation tips dial tcp 172.217.160.113:443. Please search for my previous articles or continue browsing the related articles below. I hope everyone will support me in the future!