Skip to content
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

proxy.golang.org: weird 410 response body #34141

Closed
aofei opened this issue Sep 6, 2019 · 6 comments
Closed

proxy.golang.org: weird 410 response body #34141

aofei opened this issue Sep 6, 2019 · 6 comments
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.

Comments

@aofei
Copy link
Contributor

aofei commented Sep 6, 2019

$ curl -i https://proxy.golang.org/github.com/gohugoio/hugo\!test\!modules1_darwin/modh2/@v/v1.4.0.info
HTTP/2 410 
content-type: text/plain; charset=UTF-8
date: Fri, 06 Sep 2019 11:03:59 GMT
expires: Fri, 06 Sep 2019 11:33:59 GMT
x-content-type-options: nosniff
x-frame-options: SAMEORIGIN
x-xss-protection: 0
content-length: 11
cache-control: public, max-age=1800
age: 945
alt-svc: quic=":443"; ma=2592000; v="46,43,39"

not found: %

The response body above has only one not found: prefix. It seems that the proxy.golang.org missed the specific error message.

@katiehockman @mvdan

@katiehockman
Copy link
Contributor

Interesting, when I run

curl -i https://proxy.golang.org/github.com/gohugoio/hugo\!test\!modules1_darwin/modh2/@v/v1.4.0.info

I get the following:

HTTP/2 410
content-type: text/plain; charset=UTF-8
date: Fri, 06 Sep 2019 14:42:46 GMT
expires: Fri, 06 Sep 2019 15:12:46 GMT
x-content-type-options: nosniff
x-frame-options: SAMEORIGIN
x-xss-protection: 0
content-length: 61
cache-control: public, max-age=1800
age: 93
alt-svc: quic=":443"; ma=2592000; v="46,43,39"

not found: unknown revision Test/Modules1_darwin/modh2/v1.4.0%

I'm not sure why you are missing the error message when you run the command. Can you confirm that you see the same thing when you navigate to https://proxy.golang.org/github.com/gohugoio/hugo\!test\!modules1_darwin/modh2/@v/v1.4.0.info in the browser?

@aofei
Copy link
Contributor Author

aofei commented Sep 6, 2019

Alright, I'll use screenshots to make you believe me. 😂

Terminal:

terminal

Safari:

safari

@aofei
Copy link
Contributor Author

aofei commented Sep 6, 2019

And since it's normal on your side, I think this may be a problem with CDN nodes. I don't know, just a guess.

@katiehockman
Copy link
Contributor

katiehockman commented Sep 6, 2019

Sorry that was my bad. I needed to remove the backslashes when I put it in the browser :)

Will look into this.

@katiehockman katiehockman self-assigned this Sep 6, 2019
@katiehockman katiehockman added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Sep 6, 2019
@katiehockman
Copy link
Contributor

It looks like the mirror had a cached copy of this particular module version which has since been removed from upstream. I can see that sum.golang.org has seen it in the past: https://sum.golang.org/lookup/github.com/gohugoio/hugo!test!modules1_darwin/[email protected]

I added a FAQ entry on the https://proxy.golang.org docs to explain this case a little better, and I can look into improving the error message later on.

/cc @hyangah @heschik
(I'll be taking the next 2 weeks as vacation)

@aofei
Copy link
Contributor Author

aofei commented Apr 11, 2020

Closing this issue because it hasn't been reproduced since the last time.

@aofei aofei closed this as completed Apr 11, 2020
@golang golang locked and limited conversation to collaborators Apr 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
None yet
Development

No branches or pull requests

3 participants