Skip to content

Handle errors when calling GitHub API #17

@netsi1964

Description

@netsi1964

If a GitHub API call is done more than 60 times by an IP in one hour an error:

{
  "message": "API rate limit exceeded for 80.162.220.60. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)",
  "documentation_url": "https://developer.github.com/v3/#rate-limiting"
}

is issued and the github-card will show nothing. It should display information that due to Github API limitations the card cannot be show.

One soloution could perhaps be to have option (using component attributes? or script?) to configure the webcomponent to use other than basic API calls.

I have made a page where the visitor can enter a Github username and due to the limitation in number of calls from a single IP will run into this limit quickly.
Codepen test

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions