react-github-calendar: Error Fetching GitHub contribution data for "..." failed: User "..." not found.
Hello,
I’ve implemented your component in a site I’m developing,
After a while I get
Error Fetching GitHub contribution data for "..." failed: User "..." not found.
I’m guessing this is due being rate limited, If this is the case a clear error message for rate limiting would be nice.
As you can see it happens to me even on your site:
I’ve also noticed this:
A simple API that returns number of GitHub contributions based on a users GitHub profile. This API is used by [React GitHub Calendar](https://github.com/grubersjoe/react-github-calendar) (React component).
⚠️ Results are cached for one hour!
So it’s not clear to me why this could be the case, maybe it’s how I’m using it on dev that’s not caching it appropriately.
This is the file and my next.js project.
How can I debug the caching?
I would also like to customise for how long or where I store the data preferably, is this reasonable?
Or perhaps your other 2 libraries in conjunction would lead me to have more manual control over this?
Thank you for this great component,
Adrian.
About this issue
- Original URL
- State: closed
- Created 3 months ago
- Comments: 20 (6 by maintainers)
Puppeteer is not hard to use and Microlink seems to use it under the hood as well. So I guess I’ll have to move github-contributions-api from Cheerio to Puppeteer. This will take a bit of time, though. Sorry people.
@d3or found a nice and easy solution: https://github.com/grubersjoe/github-contributions-api/pull/8
Just deployed the latest version of the API, everything should work again!
@ everyone
Don’t pressure grubersjoe we should just be thankful and patient or try to fix it ourselves since it’s opensource.
Keep the conversation clean and read the messages above before commenting, remember that everyone subscribed to this thread will get emails and notifications.
I’ll be working on it this weekend. A few days at most.
Please see this issue for further progress: https://github.com/grubersjoe/github-contributions-api/issues/7
Thank you so much!
Appreciate you being on top of this so quickly @grubersjoe . Godspeed to ya!
You’re the man!
Thanks for posting this issue. I’m using your api really well. I’ll be rooting for you.