You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If github is seeing too many requests to the API from your IP address, for example if you're working in an office or using a company VPN with NAT, it'll rate limit your API calls.
In garden self-update this can look like this:
% garden self-update
Update Garden 🗞️
No installation directory specified via --install-dir option. Garden will be re-installed to the current installation directory: /opt/homebrew/Cellar/garden-cli/0.13.9/libexec
Checking for target and latest versions...
Response code 403 (rate limit exceeded)
Expected behavior
I would expect garden self-update to "just work" even when using IP addresses that GitHub is rate limiting, or alternatively the error message should contain instructions how to update Garden manually or how to supply Github access token to work around the rate limit.
Use the version-check service that we host server side, to provide latest version information to users. This service can cache the version information to reduce calls to the GitHub API and use an auth token to authenticate requests.
Alternativels, improve the error message to instruct users how to update manually or allow users to specify their own github auth token (But I'd strongly vote for the first option instead of this)
Additional context
Your environment
OS: all OSes (I'm using macos)
How I'm running Kubernetes: irrelevant
garden version 0.13.9
The text was updated successfully, but these errors were encountered:
One first step to fix this could also be to change the install script to not rely on the github API. then they could potentially update by running the install script (curl -sL https://get.garden.io/install.sh)
Also, may it be a good idea to simply update a file on Amazon S3 with the latest version number, instead of updating the version-check API?
Garden Bonsai (0.13) Bug
Current Behavior
If github is seeing too many requests to the API from your IP address, for example if you're working in an office or using a company VPN with NAT, it'll rate limit your API calls.
In garden self-update this can look like this:
Expected behavior
I would expect garden self-update to "just work" even when using IP addresses that GitHub is rate limiting, or alternatively the error message should contain instructions how to update Garden manually or how to supply Github access token to work around the rate limit.
Reproducible example
Not easy to reproduce, but we know this can happen with unauthenticated requests to the GitHub api, e.g. https://github.com/garden-io/garden/blob/main/core/src/commands/self-update.ts#L98
Use the following example at your own risk (successfully reproduces the issue for me :))
Workaround
You can use the methods described in https://docs.garden.io/guides/installation to install the latest version of garden manually as a workaround.
Suggested solution(s)
Additional context
Your environment
garden version
0.13.9The text was updated successfully, but these errors were encountered: