Skip to content

nuxt-axios module + axios v0.019 + retry-axios #293

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

Closed
perezd opened this issue Oct 9, 2019 · 1 comment
Closed

nuxt-axios module + axios v0.019 + retry-axios #293

perezd opened this issue Oct 9, 2019 · 1 comment

Comments

@perezd
Copy link

perezd commented Oct 9, 2019

Version

v5.6.0

Reproduction link

softonic/axios-retry#59

Steps to reproduce

Attempt to enable retry:
https://axios.nuxtjs.org/options#retry

Cause a failed HTTP request, watch console output and see infinity retries at full speed.

What is expected ?

Retry 3 times as per the doc defaults.

What is actually happening?

infinite high speed retrying.

Additional comments?

OK so the problem is axios-retry is incompatible with axios 0.19:
softonic/axios-retry#59

It looks like someone tried/is trying to fix it?
softonic/axios-retry#82

The project hasn't seen any movement since January 24th (3.1.2).
The problem here, is that nuxt-axios is depending on ^0.19.0 and I guess there are no tests for this sort of integration regression.

The only solution is for me to pin axios to 0.18.1 in my own package.json.
This is messy, how should this module react to this problem? They are presenting a documented API that isn't behaving as documented..

This bug report is available on Nuxt community (#c290)
Copy link
Member

farnabaz commented Feb 3, 2021

Retry works fine with latest version.
Tested on @nuxtjs/[email protected] and [email protected]

@farnabaz farnabaz closed this as completed Feb 3, 2021
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