softonic / axios-retry

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

Feature Request: Retrying requests based on response data instead of response code #209

Closed abh006 closed 2 years ago

abh006 commented 2 years ago

As per the current scenario, requests are retried once they are failed which means the status code should be anything but OK. I have a situation where the status code is 200 but I get an error message in response. If I could specify some custom condition to trigger the retry, instead of checking the status code, that would be better.

mindhells commented 2 years ago

check retryCondition or this #100