setup-go: API rate limit exceeded
I’m getting this error fairly consistently when using the action:
Run actions/setup-go@v1.0.2
with:
go-version: 1.10
##[error]API rate limit exceeded for 199.7.166.17. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)
##[error]Node run failed with exit code 1
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 10
- Comments: 18 (4 by maintainers)
Commits related to this issue
- CI: stop using .x on Github Actions See https://github.com/actions/setup-go/issues/16. This was causing failures on master. — committed to mvdan/sh by mvdan 5 years ago
- setup-go's rate limit bug appears to be fixed See actions/setup-go#16. I haven't seen any failures after dozens of builds all day. — committed to mvdan/github-actions-golang by mvdan 5 years ago
- moving to ubuntu-latest also to avoid API rate limit https://github.com/actions/setup-go/issues/16 — committed to AlexanderWillner/TonUINO by AlexanderWillner 4 years ago
- Fix CI fail in macos-latest due to https://github.com/actions/setup-go/issues/16#issuecomment-526765785 the only workaround is by providing GITHUB_TOKEN — committed to DrSensor/mask-action by DrSensor 4 years ago
- chore: try to use secrets.GITHUB_TOKEN to get around rate limit issue https://github.com/actions/setup-go/issues/16 — committed to iwishiwasaneagle/jpathgen_common by iwishiwasaneagle 7 months ago
Friendly ping @damccorm - any chance this could get attention soon? Actions can’t be used as CI for Go until this is fixed, since builds start failing after just a dozen or so builds. The golang.org approach suggested above should work, and there’s even a PR ready 😃
@kjk @mvdan @damccorm I’ve updated API call to use the golang-dl one. I didn’t know about this.
Hmm, I still sometimes run into API rate limit errors with versions like
1.13
. It fails with no helpful error when I specify1.13.0
, so I think it’s not doing the same as1.13.x
.It should be possible to download a specific version of Go with zero GitHub API calls, as one can download Go straight from golang.org. It’s even possible to list all released versions via JSON without even hitting GitHub: https://golang.org/dl/?mode=json&include=all
Big thanks to @hfaulds for taking care of merging the PR! I think this can be closed for now. I’ll shout if I see these flakes again.