Skip to content

GitHub API rate limit exceeded for xxx #121

Closed

Description

@jakebolam
  • all-contributors-cli version: 5.4.1
  • node version: v8.11.3
  • npm (or yarn) version: yarn: 1.7.0

Relevant code or config:
n/a

What you did:
Ran yarn all-contributors check

What happened:
Crashed:
screen shot 2018-12-23 at 10 48 42 am

Reproduction repository:
Run commands which call the github API for 50+ times in more than an hour (note this is not limited to all-contributors/or your comupter, other programs on your machine and network contribute to this 50 limit for unauthenticated requests:
https://developer.github.com/v3/rate_limit/

Problem description:
API limit hit for all contributors

yarn all-contributors check
yarn run v1.7.0
$ /code/codewatch/node_modules/.bin/all-contributors check
API rate limit exceeded for xxx.xx.xx.xxx. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Suggested solution:
A way to provide a GITHUB_AUTH_TOKEN env var which is attached to github requests to avoid api limits.

Activity

  1. changed the title [-]API rate limit exceeded for xxx[/-] [+]GitHub API rate limit exceeded for xxx[/+] on Dec 23, 2018
  2. jakebolam commented on Dec 23, 2018

    @jakebolam
    CollaboratorAuthor

    I put together an example of the changes required: #122

  3. jakebolam commented on Dec 23, 2018

    @jakebolam
    CollaboratorAuthor

    FYI This is cropping up on a number of projects. It also appears to be affecting all-contributors-cli, when a contributor was trying to add himself here: #97

  4. klieret commented on Jul 20, 2022

    @klieret

    I still run into this with the latest version of the cli, so I do not believe this has been fully fixed.
    EDIT: It took me a while to realize that you added documentation of how to circumvent this at https://allcontributors.org/docs/en/cli/usage#github-users
    Thanks & sorry for the noise!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions