Skip to content

False Api rate limit call #2005

@JadeInTheSky

Description

@JadeInTheSky

Hello, I am using pygithub in a script to clone repos, after 60 call I get the error saying I have exceeded my limit
github.GithubException.RateLimitExceededException: 403 {"message": "API rate limit exceeded for user ID 45185179.", "documentation_url": "https://docs.github.com/rest/overview/resources-in-the-rest-api#rate-limiting"}

but if I curl my api I can see that I still have x-ratelimit-limit: 5000
x-ratelimit-remaining: 4999

my script is supposed to be properly setup with my token.

ACCESS_TOKEN = open("token.txt","r").read() g = Github(ACCESS_TOKEN)

I am really at loss, what should I do to fix this issue?

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