Skip to content

how to handle the rate limit error?  #1319

@niinpatel

Description

@niinpatel

We are getting this error a lot:

GithubException: 403 {u'documentation_url': u'https://developer.github.com/v3/#rate-limiting', u'message': u'API rate limit exceeded for user.'}

According to their documentation on https://developer.github.com/v3/#rate-limiting, they send the X-RateLimit-Reset header in the response from which we can figure out when to make the api call again. Is it possible to get the value of that header in PyGithub? If not, how much is the minimum time we should wait before making the api call again?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions