axios-rate-limit icon indicating copy to clipboard operation
axios-rate-limit copied to clipboard

Retrying failed requests

Open cloakedch opened this issue 5 years ago • 1 comments

Hello

I wanted to know if it is possible to retry any failed requests? Is axios-rate-limit compatible with axios-retry (https://github.com/softonic/axios-retry)?

Thanks

cloakedch avatar Feb 19 '20 09:02 cloakedch

Add your own response interceptor and if the failure error code is 429, add the request back to the queue, you should have access to the original config from error obj.

hatpick avatar Feb 28 '20 23:02 hatpick