-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
GitHub yearly commit activity badge is flaky #2704
Comments
Amazing. It was showing "invalid" a moment ago. 🤦♂️ |
There's something subtle going on here.. try it on a repo that hasn't been queried before it'll say invalid the first time. Then give it a moment and add |
Yea… I noticed that switching it to |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Doing some issue cleanup here to help facilitate a more focused discussion should anyone be interested in digging into this one. As a reminder to folks, please refrain from the update requests and "me too" type of comments; those aren't particularly helpful and just add noise. There's two separate circumstances that can result in folks seeing the badge show an
This issue is really focused on that second use case. It's true that in either case one can tweak the badge url which busts the cache, and that'll often work because the underlying issue is very temporal in nature. If the upstream GitHub API issue has resolved then the badge will be back, but if not the We currently fetch the commit data from GitHub's commit activity v3 API and the root cause for the temporary What would be helpful for anyone interested in assisting with the resolution of this issue:
|
Good thinking 👍 This was not an option when this issue was first raised but I reckon this is probably the most likely path to a solution. I think the |
Finally managed to capture this in action. This occurs when GitHub is responding to us with a 202 status code and an empty body. I'm going to take a look at a graphql query for this, and if it looks like too big a hurdle to convert in the near future then I'd suggest we investigate checking for the 202 specifically and set the message to something like |
Are you experiencing an issue with...
🪲 Description
This badge shows invalid.
🔗 Link to the badge
These work:
💡 Possible Solution
Not sure! Refactoring the service is probably a good start!
The text was updated successfully, but these errors were encountered: