Closed cdietrich closed 1 month ago
@cdietrich Sorry for the delay in getting back to you on this. Do the extensions that fail differ run to run and is it always an extension not found error? And you're attempting to install from open-vsx.org directly?
@amvanbaren Thoughts?
is there something we can do to avoid the problem
@cdietrich Yes, you can use the X-Rate-Limit-Remaining
and X-Rate-Limit-Retry-After-Seconds
response headers to prevent the 'Too Many Requests' status, as described here: https://open-vsx.org/swagger-ui/index.html#/registry-api/getFile
@amvanbaren so should this be implemented inside vscode/codiums/code-server install-extension commands?
@cdietrich I would first try to find out how you're able to install 15 extensions per second.
if this runs in github actions. then there might be a lot of different actions from different github accounts try to do the same thing, using the same ip, wont they?
we will try to throttle on our side anyway and keep observing
Github has about 3800 IP ranges for actions: https://api.github.com/meta. While it's not infinite, it's still a lot. It could be that an organization is assigned a specific IP address for its actions. You can find out by adding an extra step to the workflow: https://swharden.com/blog/2022-03-12-github-actions-ip/
@cdietrich OK to close this now?
@cdietrich ^^^^
It’s ok to close
Thanks!
We are running builds on github actions that produce docker images with code-server and some preinstalled extension in our dockerfile we do something like
this sometime fails with "Too many request".
what are the current SLAs and is there something we can do to avoid the problem.
initially reported as https://github.com/eclipse/openvsx/issues/975