-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
auto-updater check is broken when API rate limit exceeded #1813
Comments
@dscho @between2spaces @larsxschneider |
Please be sure to review the code of conduct and be respectful of other users. cc/ @git-for-windows/trusted-git-for-windows-developers |
So Github says they will reply with HTTP status 403 in this case. Curl by default does not return an error code. We need to add the If we want to distinguish different HTTP error codes, we can output the HTTP status with curl -i. |
And while we are at it, we may want to add |
This seems to be a near daily occurrence for me lately.
Well the scheduled check is daily and keeps prompting me. This is a CLI repro. |
So it's not just me then - which means I don't need to write it up (c: |
Hi @chris-findlay @sschlesier @douniwan5788, If you are able to contribute a little time to a PR that supports @drizzd 's suggestions so that at least users like yourselves get to see the error message (that we've hit a rate limit) then that would be a great assistance to the project, as it is a volunteer community effort. Hoping you can help. Philip |
@dscho Do you see a possibility to host GFW releases elsewhere to avoid the rate limit entirely? Otherwise, how about a firebase cloud function which listens to Github events to mirror at least the release information, including the download link. I have some experience with that. |
I wouldn't mind doing the same thing with Azure, by the way. |
Setup
to the issue you're seeing?
shared outbound ip/under proxy
Details
CMD
Minimal, Complete, and Verifiable example
this will help us understand the issue.
What I found
The update check url (https://api.github.com/repos/git-for-windows/git/releases/latest) is API rate limit exceeded.
and checking method is not solid enough to handle this situation
https://github.com/git-for-windows/build-extra/blob/master/git-extra/git-update-git-for-windows#L141-L183
The text was updated successfully, but these errors were encountered: