Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle errors when calling GitHub API #17

Open
netsi1964 opened this issue Sep 7, 2014 · 1 comment
Open

Handle errors when calling GitHub API #17

netsi1964 opened this issue Sep 7, 2014 · 1 comment

Comments

@netsi1964
Copy link

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

@netsi1964
Copy link
Author

removed ip.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant