NixOS / nixpkgs-merge-bot

Allows package maintainers to merge in nixpkgs
MIT License
52 stars 6 forks source link

Rate Limit exceeded #119

Open Lassulus opened 1 month ago

Lassulus commented 1 month ago

We see an increase in 403 errors

https://github.com/NixOS/nixpkgs/pull/348977#issuecomment-2420743193 https://github.com/NixOS/nixpkgs/pull/349062#issuecomment-2421872252

which seems indicative of Rate Limiting. From the GitHub docs:

If you exceed your primary rate limit, you will receive a 403 or 429 response, and the x-ratelimit-remaining header will be 0. You should not retry your request until after the time specified by the x-ratelimit-reset header.

If you exceed a secondary rate limit, you will receive a 403 or 429 response and an error message that indicates that you exceeded a secondary rate limit. If the retry-after response header is present, you should not retry your request until after that many seconds has elapsed. If the x-ratelimit-remaining header is 0, you should not retry your request until after the time, in UTC epoch seconds, specified by the x-ratelimit-reset header. Otherwise, wait for at least one minute before retrying. If your request continues to fail due to a secondary rate limit, wait for an exponentially increasing amount of time between retries, and throw an error after a specific number of retries.