Skip to content
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

nix-init silently fails at API rate limit exceeded #64

Open
milahu opened this issue Jun 22, 2024 · 0 comments
Open

nix-init silently fails at API rate limit exceeded #64

milahu opened this issue Jun 22, 2024 · 0 comments

Comments

@milahu
Copy link
Owner

milahu commented Jun 22, 2024

$ nix-init pkgs/python3/pkgs/dephell-links/default.nix --url https://github.com/dephell/dephell_links
Enter tag or revision (defaults to v.0.1.5)
❯ v.0.1.5
Enter version
❯ 0.1.5
Enter pname
❯ dephell-links
Error: command exited with exit status: 1
stdout:

stderr:
$ nix flake prefetch --extra-experimental-features 'nix-command flakes' --json github:dephell/dephell_links/v.0.1.5
error:
       … while fetching the input 'github:dephell/dephell_links/v.0.1.5'

       error: unable to download 'https://api.github.com/repos/dephell/dephell_links/commits/v.0.1.5': HTTP error 403

       response body:

       {"message":"API rate limit exceeded for 123.123.123.123. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://docs.github.com/rest/overview/resources-in-the-rest-api#rate-limiting"}
Error: command exited with exit status: 1


~/src/milahu/nur-packages $ nix-init pkgs/python3/pkgs/dephell-links/default.nix --url https://github.com/dephell/dephell_links
Enter tag or revision (defaults to )
❯   
Error: Interrupted

expected: nix-init should suggest the tag v.0.1.5

... or nix-init should fail early, not after i enter tag, version, pname

$ nix-init pkgs/python3/pkgs/dephell-links/default.nix --url https://github.com/dephell/dephell_links
Enter tag or revision (defaults to )
❯ v.0.1.5
Enter version
❯ 0.1.5
Enter pname
❯ dephell-links
Error: command exited with exit status: 1
stdout:

stderr:
$ nix flake prefetch --extra-experimental-features 'nix-command flakes' --json github:dephell/dephell_links/v.0.1.5
error:
       … while fetching the input 'github:dephell/dephell_links/v.0.1.5'

       error: unable to download 'https://api.github.com/repos/dephell/dephell_links/commits/v.0.1.5': HTTP error 403

       response body:

       {"message":"API rate limit exceeded for 79.253.18.58. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://docs.github.com/rest/overview/resources-in-the-rest-api#rate-limiting"}
Error: command exited with exit status: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant