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
{{ message }}
Repository navigation
"nix upgrade-nix" sometimes fails with GitHub 429 "Too Many Requests" error #12419
It looks like GitHub is not happy about Nix querying the raw nix-fallback-paths.nix file.
When I try to access that file (whether by running nix upgrade-nix, or from a web browser logged in to GitHub), I sometimes get a 429 "Too Many Requests" error.
Here's what it looks like when nix upgrade-nix fails due to this problem:
root@debian:~# nix upgrade-nixwarning: the group 'nixbld' specified in 'build-users-group' does not existwarning: error: unable to download 'https://github.com/NixOS/nixpkgs/raw/master/nixos/modules/installer/tools/nix-fallback-paths.nix': HTTP error 429 response body: 429: Too Many Requests; retrying in 268 mserror: syntax error, unexpected invalid token at «string»:1:1: 1| | ^root@debian:~#
Even though the error message says it will retry, it doesn't seem to actually retry. For comparison, here is what a successful execution looks like:
root@debian:~# nix upgrade-nixwarning: the group 'nixbld' specified in 'build-users-group' does not exist[0.0 MiB DL] verifying that '/nix/store/kwck2vdfdp2v4jr9c4daryyk9mlbx406-nix-2.24.12' works...warning: the group 'nixbld' specified in 'build-users-group' does not existwarning: the group 'nixbld' specified in 'build-users-group' does not existreplacing old 'nix-2.18.1'installing 'nix-2.24.12'root@debian:~#
The source IP address making the request doesn't seem to matter, so it doesn't seem to be a case of GitHub throttling one IP.
This is https://github.com/.../raw/... not api.github.com
As mentioned, this does not seem to be IP-specific - I saw this in quick succession on two different machines that are on different continents which do not query GitHub frequently
The link shows that the limits are full (untouched), as expected
Activity
SuperSandro2000 commentedon Feb 4, 2025
You can check the IPs rate limit with https://api.github.com/rate_limit
the-sun-will-rise-tomorrow commentedon Feb 4, 2025
@SuperSandro2000
https://github.com/.../raw/...notapi.github.com