goproxyio / goproxy

A global proxy for Go modules.
https://goproxy.io
MIT License
5.8k stars 366 forks source link

Return connection reset by peer when download the packages. e.g etcd, protobuf #181

Closed little-cui closed 3 years ago

little-cui commented 3 years ago

go version is 1.14.9

run command in HUAWEI cloud VM below

export GOPROXY=https://goproxy.io,direct
go mod download

then return errors

github.com/coreos/etcd@v3.3.25+incompatible: read tcp 192.168.0.26:53028->119.28.201.50:443: read: connection reset by peer
...
oiooj commented 3 years ago

@little-cui If you can't access goproxy.io servers, you can try to use proxy.golang.com.cn

export GOPROXY=https://proxy.golang.com.cn,direct