-
Notifications
You must be signed in to change notification settings - Fork 18k
proxy.golang.org: go mod vendor, go get <package>, etc not working with "unexpected EOF" error #46179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
1.14 is no longer supported, does this still happen with a supported release (1.15, 1.16)? |
I also suspect this may be due to some network issue. However, I could directly open/access the link https://proxy.golang.org/github.com/dgrijalva/jwt-go/@v/v3.2.0+incompatible.mod via browser/using wget in the same environment. Wondering in the backend how the commands "go get"/"go mod" differ from opening the link directly. I havn't got a chance to switch to 1.15/1.16 to test in the same environment, but definitely will give it a try soon later. |
I suspect you have a proxy configuration that wget and your browser understand but that Go does not. |
Yes I have a proxy configured for web access. From my IDE (VS Code) it should take the same proxy settings (http_proxy/https_proxy) and I trigger the commands from the IDE only. I am not sure why both ways behave differently. |
Could this be a proxy configuration issue? It looks superficially similar to #29809. (See especially #29809 (comment).) |
Thanks a lot! After removed the "https://" from the proxy settings, I am able to connect and download. Have a nice day! |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
No
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
run the commands,
go mod vendor
or
go get -v -x github.com/dgrijalva/jwt-go/@v/v3.2.0+incompatible
What did you expect to see?
(The downloading successful response)
What did you see instead?
go: github.com/dgrijalva/jwt-go@v3.2.0+incompatible: Get "https://proxy.golang.org/github.com/dgrijalva/jwt-go/@v/v3.2.0+incompatible.mod": unexpected EOF
The text was updated successfully, but these errors were encountered: