-
Notifications
You must be signed in to change notification settings - Fork 34
Custom Retry Conditions #6
Comments
I'm 2.5 years late to this party but... it's looks like you can add custom conditions something like this:
|
Thanks for the note. That would certainly take care of the Also worth noting: the |
@skeggse Did you find a solution for the OAuth token refresh scenario? |
It would be great if this library was able to be configured in a way to respect 429 (Rate Limit) and Retry-After headers, just to give an example case. |
Retry is great for some use-cases, but it seems like it could be extended to support custom retry scenarios.
A good example might be OAuth: if I receive a
401 Unauthorized
response, I want to update my access token. Naturally, that operation is asynchronous, so it'd need a callback.The text was updated successfully, but these errors were encountered: