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
Node.js 20 compatibility #5929
Comments
Hello there, |
This is a critical bug for us. Has there already been some progress? |
@DigitalBrainJS Could you please provide a statement on the plan how to resolve outstanding issues for Node.js 20? Currently 4 unit tests fail with Node 20.8.0 and Axios is affected by nodejs/node#47130. |
@Pharb Did you find a workaround for this? We are suffering from the same |
I see that axios v1.6.0 is now tested for Node.js 20 - so this issue can be closed:
There are still problems with axios v1.6.2 and Node.js 20 resulting in ECONNRESET on localhost HTTP requests - my current workaround is this: axios.create({
httpAgent: new Agent({ keepAlive: false })
}); The Node.js issue is still open: nodejs/node#47130 |
Thanks @Pharb! Will try that Does this node 20 issue happens to you only on localhost HTTP requests? For us it is happening also with remote calls |
I did not have problems with HTTPS remote calls. For me it was only a problem with HTTP requests to localhost. |
For us it's also happening with remote calls, but I guess the URL does not matter here. The most important thing is that while the workaround works1, it cannot be easily applied to projects, because axios is very often 2 a dependency of some 3rd party SDKs. Sometimes the packages allow you to pass some axios config to initialize them, but it is not common. And I'm not sure if that's even possible to override the axios config globally for all deps. So, unfortunately, I think we still need to wait for the resolution of the issue on Node's side (nodejs/node#47130) Footnotes |
It seems I am encountering this problem with Axios 1.6+ and Node 20.10 when using |
Hi, do you know if this is going to be corrected in node? I have this issue with Axios 1.6.7 and node 20. |
same here, node 20 and does not send texts |
same issue here :/ |
Same issue with Node 20.12.1 and Axios 1.6.8 |
H there, Thanks, |
We do not have this issue at all and we have been using node 20 just after it entered LTS. |
Describe the bug
Axios tests fail on Node.js 20 (will be next LTS version starting 2023-10-24).
There probably are breaking changes affecting HTTP clients, e.g.:
To Reproduce
Run tests with Node.js 20: https://github.com/Pharb/axios/actions/runs/6348646385/job/17245665305
Expected behavior
Axios works and is tested for Node.js 20
Axios Version
v1.5.1
Node.js Version
v20.7.0, v20.8.0
OS
Ubuntu 22.04.3, macOS 13.6
Additional context/Screenshots
The text was updated successfully, but these errors were encountered: