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
"Class extends value #<newConstructor> is not a constructor or null" when sending request from node.js 20.12.0 #6340
Comments
I can't reproduce the issue using your example in both versions. Have you tested this on your example? |
We've been hampered by this issue for months and are stuck on node v18.18.1 because of it. We don't use axios directly in our project, but the @slack/web-api and stream-chat libraries that we use in our project both use axios. I have no idea if axios is the real source of the issue here, but the error occurs anytime those libraries try to make an http request on node v18.18.2 or higher via axios. Our "fix" is to downgrade to node v18.18.1. As @mattwatts-aimltd-uk says, anything v18.18.2 or greater gets this same error. Here's what we see when the stream-chat library tries to make a request via axios on node > v18.18.2
Similar error when we the @slack/web-api tries to make an http request via axios:
|
Describe the issue
Hi all,
After recently trying to upgrade from node.js 18.18.1 to the latest LTS (20.12.0) my Axios requests are failing with the below error:
Reverting back to the old node version prevents this from being an issue. As far as I can see, this breaks when I move from Node.js 18.18.1 to any version >= 18.18.2, as that experiences the same issue.
This seems to only be an issue where I'm sending a request with
qs.stringify(data)
in the body, but can't see any incompatibilities between this version of Node and QS.I'm running Axios within a Dockerized Node.js container.
Does anyone have any idea as to why this might be happening?
Example Code
Expected behavior
Axios should send and receive the HTTP request in the same manner between Node versions.
Axios Version
1.6.8
Adapter Version
No response
Browser
No response
Browser Version
No response
Node.js Version
20.12.0
OS
No response
Additional Library Versions
No response
Additional context/Screenshots
No response
The text was updated successfully, but these errors were encountered: