-
Notifications
You must be signed in to change notification settings - Fork 17.4k
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 403 forbidden #48107
Comments
Is this in a container? Did you test on the host? Is it just this one dependency? Does curl work? Do you have a corporate proxy you need to configure? |
Yes, this is in a docker container based on golang:latest.
I did test it locally on my local computer and it works fine, I don't get this error. So it must be an environment issue but I'm not sure what difference to look for between my computer and this docker container that could be the reason for this issue. I'm at a loss as to why I can't get this one dependency when all my other dependencies are retrieved without any issue.
Yes.
No. The build in question has actually been working for years and only within the last month or so have we run into this problem. I was hoping this would ring a bell for someone that could point me to some known reason that this specific package or any package might have this problem, but if not I would totally understand closing this issue because it is just something about the combination of this dependency and my specific environment and it probably wouldn't be an effective use of anyone's time to try to troubleshoot beyond that. |
Can you try cURLing from the container shell session? What about an explicit Assuming the latter reproducibly fails, I think it's worth checking the following: GODEBUG=http2debug=1 go get -x -v github.com/klauspost/compress@v1.13.5 2> debug.txt The resulting Thanks! |
Since this wasn't addressed specifically: |
@findleyr and @heschi thank you so much for your input here, I'm going to try all of these things. I ran
|
@teresa-recursion it looks like you're in GOPATH mode with that output (which is why you had to remove the Could you try running from a module, or running instead
If that produces empty output you likely hit the module cache, in which case you can run |
also
|
I hit enter too soon, here's the actual output of
|
And the response from
I don't know what this means at first glance, but it's something I can investigate! I'm not sure if "prohibited by organization's policy" means my organization the organization of the package I'm using. I'm running this docker container on GCP Kubernetes Engine and although I answered "no" to the question about needing to configure a corporate proxy maybe there's something there that I'm just not aware of. It's interesting that I'm only seeing this for one dependency, but as suggested above maybe that's due to different paths taken based on size? |
It looks like we enabled VPC Service Controls a few weeks ago (since the last time this build ran successfully and pulled down this dependency). I think that's what is going on here. I don't know if this investigation will be helpful for anyone else but it was immensely helpful for me. Thank you very much @seankhliao @findleyr @heschi ! |
I have the same issue when downloading mongoDB golang driver in vs code using the command: |
I'm having the same problem
installing it separately produces the same error:
currently using go version 1.18 |
I had the same issue. When I was trying to reach |
I had this same issue, try this |
This worked perfectly for me, thx you saved me a lot if time^_^ |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
When running a go build I'm getting a 403 from
https://proxy.golang.org/github.com/klauspost/compress/@v/v1.13.5.zip
. When I just navigate to this URL I am able to download the zip file. I get a 302 but the zip file downloads, I never get a 403. Under what circumstances would https://proxy.golang.org return a 403?I'm unsure why it isn't just getting the zstd dependency which exists here, why it's falling back to the proxy, and then why the proxy is returning a 403.
What did you expect to see?
(basically just getting the dependency and not throwing an error)
What did you see instead?
Apologies if this is a honeycombio issue or an environment issue, I've been trying to understand why I would ever get a 403 from https://proxy.golang.org but haven't been able to find anything.
The text was updated successfully, but these errors were encountered: