-
Notifications
You must be signed in to change notification settings - Fork 21
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
[FEAT]: Requests returning HTTP 410 Gone should not be retried #620
Comments
👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labeled with |
Thanks for pointing this out, it's a simple one-line fix for this. A PR for this is welcome! However please do note that we are currently unable to release any new versions of Octokit packages because GitHub recently clamped down on security and enabled 2FA on our bot token that is used for publishing NPM releases from GitHub actions. |
@wolfy1339 Thanks! I've opened a PR to resolve this issue: #621
Is this something you're actively working on right now? No rush for this feature, but I think it would be a good one to include eventually. Let me know if there's anything I can do to help. |
It's out of my hands, I am only a community maintainer and not a GitHub employee. I did raise this issue with a GitHub employee who is on the Octokit team, and they said they would look into it. It especially sucks because we sign our releases using provenance, and that can only be done from CI 🤷♂ Here we are... |
@wolfy1339 Do you have all the details on what the exact problem is? Is there an issue that you could point me to? (And if not, would you mind creating one?) I work at GitHub and I would like to help you escalate this. Thank you for helping to maintain Octokit, and apologies for any inconvenience here 🙇 |
I created octokit/octokit.js#2829 to track this |
🎉 This issue has been resolved in version 7.2.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Describe the need
As part of the Projects (classic) sunset, these REST APIs are returning HTTP 410 to indicate that the APIs are no longer available.
According to the spec for the 410 status code, this is mechanically very similar to HTTP 404 and the recommendation is to even cache the request:
https://www.rfc-editor.org/rfc/rfc9110.html#name-410-gone
Based on this information, I believe that requests which return a 410 status code should not be retried, as the server has indicated future requests will also return a 410 temporarily or permanently. This saves on unnecessary network requests, which helps ensure that clients are better able to stay under the API rate limits.
Code of Conduct
The text was updated successfully, but these errors were encountered: