Skip to content

[Solved] dial tcp: lookup proxy.golang.org: i/o timeout

If you get a timeout when trying to install go dependencies, the error may look something like this:

$ go get github.com/aws/aws-sdk-go/aws go: module github.com/aws/aws-sdk-go/aws: Get "https://proxy.golang.org/github.com/aws/aws-sdk-go/aws/@v/list": dial tcp: lookup proxy.golang.org: i/o timeout
Code language: plaintext (plaintext)

How to Solve the Timeout Issue when installing Go Deps

export GOPROXY=direct
Code language: AsciiDoc (asciidoc)

Then re-run your go get command.

See also  How to Repeat by String Index in Golang
Tags:
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x