Skip to content
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

Retrying failed requests #24

Open
cloakedch opened this issue Feb 19, 2020 · 1 comment
Open

Retrying failed requests #24

cloakedch opened this issue Feb 19, 2020 · 1 comment

Comments

@cloakedch
Copy link

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

@hatpick
Copy link

hatpick commented Feb 28, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants