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

axios auto retry on failed requests (timeout, 500,...) #77

Closed
simllll opened this issue Jan 10, 2018 · 1 comment
Closed

axios auto retry on failed requests (timeout, 500,...) #77

simllll opened this issue Jan 10, 2018 · 1 comment

Comments

@simllll
Copy link
Contributor

simllll commented Jan 10, 2018

Are there any ideas or plans to retry failed requests automatically? I've seen it serveral times especially on mobile users that from time to time requests just fail. Or there are some temporary 500er due to server scalings or whatever.

There is e.g. exios-retry out there:
https://www.npmjs.com/package/axios-retry

Would be nice to have thisin this module, retrying of 500er or timeouts with a exponential backoff strategy.

Let me know what you think about it, I can implement it otherwise.

Thanks
Simon

This feature request is available on Nuxt.js community (#c68)
@simllll simllll changed the title axios retry axios auto retry on failed requests (timeout, 500,...) Jan 10, 2018
@pi0
Copy link
Member

pi0 commented Feb 4, 2018

Will be available soon 🍷 Thanks for the suggestion.

pi0 pushed a commit that referenced this issue Feb 4, 2018
pi0 pushed a commit that referenced this issue Feb 4, 2018
pi0 pushed a commit that referenced this issue Feb 4, 2018
@pi0 pi0 closed this as completed Feb 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants