supabase / repository.surf

🏄
https://repository.surf
MIT License
80 stars 11 forks source link

[bug] GitHub API rate limit exceeded #90

Open tudi2d opened 3 years ago

tudi2d commented 3 years ago

Bug report

I really like the website - you did a great job building it! It seems like I´m not the only one, who likes the project ;)

Describe the bug

I tried to get the statistics of a organization (@OneArmy) I contribute to. The following happens, when I searched for it:

  1. A new page is rendered & the organizations GitHub Logo is loaded
  2. Loading buffer for the statistics appear
  3. Loading never ends & no error is indicated
  4. A look in the Network console shows, that the rate limit of the GitHub API exceeded

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Go to https://repository.surf/ONEARMY
  2. See the problem

Expected behavior

I would have expected to get the feedback, that the repository cannot be loaded. Furthermore the UI should stop indicating, that something is loaded.

Screenshots

image

System information

Additional context

The documentation by GitHub about rate limits for the GraphQL API: https://docs.github.com/en/graphql/overview/resource-limitations

joshenlim commented 3 years ago

hey there @tudi2d! thank you so much - we really appreciate it :) You're right - we should definitely add some feedback if rate limits are busted, and perhaps possible mitigations for this too.

But meanwhile, rate limits refresh every hour - I've just tried OneArmy and it seems to be loading fine now actually