github-readme-stats: [Upstream Issue] GitHub Stats Card broken for some usernames
Describe the bug
Since 2 days the Github Stats Card on my personal README.md appears to be broken when my username is used. When I switch the username to another user, for example, anuraghazra the card starts to work again. Switching from my self-hosted vercel instance to the community one does not solve the issue. All the other cards seem to work fine with my GitHub username. The only error GitHub gives me is the following:
Error Fetching Resource
Might be something I have to sort out with the GitHub support, but I first wanted to check if somebody else is also experiencing this issue.
Expected behaviour
I would expect that the card also works for my username.
Screenshots / Live demo link (paste the github-readme-stats link as markdown image)
Additional info
I currently use https://github.com/anuraghazra/github-readme-stats/pull/1122 to also receive organization stats, but the issue also appears on the master branch.
About this issue
- Original URL
- State: open
- Created 5 years ago
- Reactions: 15
- Comments: 46 (8 by maintainers)

Thanks for letting me know that I’m not the only one with this problem! Maybe from now, let’s add a thumbs up instead of commenting when you don’t have additional information relating to this bug. This will keep this issue and our mailbox clutter-free 😃.
Okay I don’t think this is from our end.
Something is really messed up from github’s side.
It’s returning error/HTML content on graphql api request
Note that it’s only happening for few users.
Hi everyone, I’ve added a hotfix for the issue for the moment, it should solve the issue for now. https://github.com/anuraghazra/github-readme-stats/pull/1409
The error you are getting is that you are trying to request stats for an organization. Which is currently not supported. A feature request for this feature can be found on #654. You can show your support there.
Here is a quick update I and @anuraghazra again reiterated to GitHub that this issue must be solved. We received the following response:
For now, we, therefore, have to keep using the hotfix till GitHub fixes the issue. The downside of this is that the HotFix requests more data since it requests the same field twice. The agent has been notified about this. I will let you know when the ticket status changes.
@anuraghazra I was also surprised by the response. Such a response is however sadly not uncomment on tickets like this since companies are often highly protective of the time of their developers. I will try to reiterate the importance of solving this issue. I will send it to your gmail so you can review it before I send it. I can also post it here but I wanted to keep this issue clean.
WTF! How does my
hotfixjustifies the problem as “solved”?Of course it should be fixed from their side, it’s an literal issue with their API responses. There could be other services which might use their graphql apis and those will also suffer the same problem.
Give them this example error,
@anuraghazra Thanks for your answer I closed #1416. Maybe we can hide the comments related to the
maxDurationdiscussion?I got the following response from the GitHub Team:
I however think that all tickets are private. I will keep you updated.