-
Notifications
You must be signed in to change notification settings - Fork 22
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
use Okta's response headers for rate limits #11
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
transcript of (Gabriel's half of) a conversation with @somethingnew2-0
why do u use exponential backoff when Okta tells you when u can retry the api call?
access/api/services/okta_service.py
Lines 41 to 66 in 40d8c0b
if u get a 429 error that tells u when to retry, why not look at those headers?
eg (and this isn't perfect, but...)
https://github.com/gabrielsroka/gabrielsroka.github.io/blob/master/console/index.html#L169-L187
ie, if u reach the rate limit at 10:00:00 and it tells u to retry at 10:01:00, there's no point in retrying at 10:00:01.2, 10:00:02.4, 10:00:04.8. ur just gonna get more errors
https://developer.okta.com/docs/reference/rl-best-practices/#check-your-rate-limits-with-okta-s-rate-limit-headers
The text was updated successfully, but these errors were encountered: