Upload reach api rate limit

Whenever im trying to update the system nix flake update i frequently get the api limit reached error.

anyone else having this problem?

I had this happen to me in the past with an app that had a self-updater script combined with a service that was poorly written (by me). I believe it was noisetorch.

At startup, it would try to update itself in a way that nix doesn’t like and fail. Presumably by fetching a tarball from GH. And because the service was written to repeat on failure without a limit, this would repeat ad nauseam.

The problem also didn’t bubble up immediately because I started on a relatively new version. It took some time for the version I had installed to drift away from the latest and then this setup blew up on me.

1 Like

This is a common problem, and is probably even more common after GH reduced the limit even further recently.

Your best option is to set an access-tokens for GH in your nix configuration.

3 Likes

@Felipe-9 Maybe this thread can help u out: Flakes: Provide GitHub API Token for rate limiting?

1 Like

i guess having greater rate limit would indeed help, that is until they lower further. i when i have time i will give it a try, will be using sops tho.