softonic / axios-retry

Axios plugin that intercepts failed requests and retries them whenever possible
Other
1.9k stars 167 forks source link

Retry on 429 #137

Closed kceb closed 4 years ago

kceb commented 4 years ago

It seems like this pkg only retries on 5xx errors and connection refused errors.

Is there a reason 429 errors were ignored? I feel like those are an essential use case for retry-logic (to get past API rate limiting)

Edit: nvm I saw the previous closed issue. Also I was running/testing on Runkit and the retryCondition callback f(x) wasn't being called with any arguments. Seems to work locally