Rate limit doesn't promise it will always be a positive integer #16683
Labels
content
This issue or pull request belongs to the Docs Content team
rest
Content related to rest - overview.
waiting for review
Issue/PR is waiting for a writer's review
Code of Conduct
What article on docs.github.com is affected?
https://docs.github.com/en/rest/guides/best-practices-for-integrators#dealing-with-secondary-rate-limits
What part(s) of the article would you like to see updated?
The current text (emphasis added) says:
A number of other vendors (spotify/web-api#542, WebexCommunity/WebexPythonSDK#52) have at times sent
retry-after: 0
when they in fact meantretry-after: 1
.In adding some code to deal w/ that case, I decided to check the documentation, and the documentation here doesn't promise that the server won't send
retry-after: -10
orretry-after: 0
.I'm glad it's promising not to send the float
1.5
, the stringtomorrow
, or the date-time2038-01-19T03:14:08Z
.positive integer
, or anatural number
.0
, it'd be nice if the documentation specifiedwhole number
and then explained what one should do when the value is0
.Additional information
I'm aware that this is a
best practices
guide.These are really the only pages I can find that generally discuss the subject:
Of these pages, only Best practices for integrators actually talks about
retry-after
.This repository used to have (non-user-facing) code that handled
429
: 704f699And it currently has:
This comment (which would trigger a PR from my tooling for this line, but, I'm not sure if that'd be particularly welcome):
docs/script/check-english-links.js
Line 8 in ad3d0cd
And this, which definitely isn't user facing:
docs/script/check-english-links.js
Line 32 in ad3d0cd
It'd be great if a user facing page explicitly mentioned
429
. (There's one REST API that mentions429
, but I don't know why #16682.)The text was updated successfully, but these errors were encountered: