-
Notifications
You must be signed in to change notification settings - Fork 243
axios-retry problem with baseURL #114
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
Comments
Is this bug fixed yet? |
No, but you can overcome it by not providing a Baseurl and just provide the whole path to the request itself. |
Facing the same issue, and is not related to // Support baseURL config
if (config.baseURL && !isAbsoluteURL(config.url)) {
config.url = combineURLs(config.baseURL, config.url);
} If you don't use an absolute URL as This means that.. When that request is retried the code of dispatchRequest.js will be repeated, and now the value of Solutions
|
Other bug in 0.19.0 : bug |
Can you please verify if this is now fixed with last version of axios? |
I tried, it works now 👍 |
When a request fails, a 2nd retry (with axios-retry) fails due to the reason that the baseURL gets attached again.
How to test: just make a test with a failing endpoint and set browserBaseURL to '/api'.
regards
Simon
The text was updated successfully, but these errors were encountered: