6

I try to run my golang project with go run main.go. I receive:

go: downloading github.com/package
main.go:13:2: github.com/package: Get "https://proxy.golang.org/github.com/package": proxyconnect tcp: dial tcp: lookup http on x.x.x.x:x: read udp x.x.x.x:x->x.x.x.x:x: i/o timeout

Help me please resolve this problem.

Ivan
  • 303
  • 3
  • 13
  • It looks like your DNS is not resolving `proxy.golang.org`. This could be due to your environment (developing in a container?) or external factors (China is known to [block `proxy.golang.org`](https://stackoverflow.com/a/71541097/11810946)). Please provide more details (e.g. can you resolve other domain names and ideally pick a real package to reduce the severity of redaction). – Brits Jun 23 '22 at 09:30

1 Answers1

12

export GOPROXY=direct and relaunch, seems like proxy.golang.org have some difficulties recently HTH