-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Cannot download binary due to api rate limit #3094
Comments
How many times did you use click "Download now" button today ;D ? |
I did 2 times, it's api server hitting limit and not caused by individual presses N times. |
We do issue two requests to GitHub. One for retrieving the information about the latest release and the second downloads the binary itself. Do you think this is because two of them are issued in a very short period of time? |
It should be related and I think that also need to be improved. Main crux is total numbers of request in a given timeframe exceeded limit - most likely after plugin is released many ppl try to download binary in a short time frame. |
Per https://developer.github.com/v3/ it's 5000 per hr, each individual fires 2 requests so 2500 download attempt will hit rate limit. |
There is no api key used, so rate-limiting should be done one a per IP base. |
|
I am certain I did not make 60 requests per hr, I just installed and tried 2 times only 🤔 |
I also doubt that downloading the file counts as an API request ... |
3100: vscode: add error handling to downloadFile() r=matklad a=Veetaha Inspired by #3094. Co-authored-by: Veetaha <[email protected]>
I have the same problem. I got 403 on the first try to download the rust-analyzer.
but I still get the 403 error when tryting to start the server. Why are API request made even if the binary is available? |
You downloaded the nightly version instead of the 2020-08-31 version. The rust-analyzer extension only accepts a rust-analyzer executable that is built from the same git commit. |
Having |
I reinstalled it using
and now it works. My theory as to why is the following: It detected the binary to be of nightly release and consequently polled Github for a new Version even though I did not explicitly set the |
We now support setting a GitHub auth token, and we no longer check GitHub if the LSP binary path is manually set. Please reopen or file a new issue if you're still having problems. |
published analyzer in marketplace, clicking download raises
and manually hitting endpoint reveals it's due to
looks like can gracefully handle non-expected api response & can give retry chances later.
The text was updated successfully, but these errors were encountered: