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 instance not working after update to 0.21.4 from 0.21.1 #4027
Comments
NodeJs 14 or 16 have this problem also .... half http/https queries doesnt work with this update sending "Bad json request" as reply |
Which version of node are you using? |
Right now 14.17.1 (tried also 14.17.6, and 16.8.0) and returned to 0.21.1 axios.
this code working with 0.21.1 but fails with 0.21.4 |
Latest version also breaks unit tests since the validators are now breaking ( |
I am using node V14.16.0 |
@Alta1re I tried reproducing this on runkit without success: https://runkit.com/nerdbeere/613710790e31ee0008798854 Can you try building a minimal case where this bug is visible? |
Also not work with axios@0.21.4, but work with axios@0.21.1. my Node.js version is v14.16.0 |
But you are not using an axios-instance. With using axios directly i don´t have problems, too. |
When i create a bare react-app, and just insert an axios-instance and an axios call in App.js, i can´t reproduce this too. |
Mm seems odd can you try give us a reproducible example @Alta1re |
I am having the same issue. It is related to the package.json version on axios. For some reason, this isn't getting the proper version. I'm using node 12 |
Cool there is a fix #4029 as soon as it is rebased I will do a release |
Sorry to bother but was this ever released? I see that both this issue and #4029 are closed but no new version above 0.21.4. |
You can use this version: v0.22.0 or + |
Describe the bug
I updated from 0.21.1 to 0.21.4 in my react-native application, where i am using an axios-instance.
After the update, i got "Network Error".
When i omitted the instance, and used axios directly, it worked, but not with instance.
After downgrading back to 0.21.1 everything works fine again.
To Reproduce
Just used a simple instance, like shown in the docs.
Expected behavior
Axios should work with instance, or, if the usage of instance changed, we an update in the docs.
Environment
Axios Version 0.21.1 / 0.21.4
Additional Library Versions [e.g. React 16.13.1, React Native SDK42]
Additional context/Screenshots
Add any other context about the problem here. If applicable, add screenshots to help explain.
The text was updated successfully, but these errors were encountered: