Skip to content

github.GithubException.RateLimitExceededException #1115

@242jainabhi

Description

@242jainabhi

I am trying to fetch the number of open issues using the following code in my Flask application.

g = Github()

repo = g.get_repo(repo_name)

open_pulls = repo.get_pulls(state='open')
open_pull_titles = [pull.title for pull in open_pulls]

open_issues = repo.get_issues(state='open')
open_issues = [issue for issue in open_issues if issue.title not in open_pull_titles]

and I get the error github.GithubException.RateLimitExceededException: .

repo.get_issues() returns the count of open issues plus pull requests.

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