-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of Buffer or URL. Received null #38058
Comments
Actually, this bug is in |
So, do I understand it correctly that it's a Node.js issue and not Multer? |
It’s a |
Closing as it's not a bug in Node.js. It's a bug in fs-temp and it should be reported here: https://github.com/LinusU/fs-temp/issues. |
v16.0.0-v8-canary202104037284782541
What steps will reproduce the bug?
For file uploading to the cloud, I'm using Multer (
"multer": "^2.0.0-rc.2"
). With Node.js 15.3.0 everything is working great, after upgrading to 16.0.0 (starting end of March 2021) I'm getting the following error:When I'm rolling back to 15.3.0 no error occurs.
After some investigation, I've found out that the source of the issue is
await asyncUpload(req, res);
.The code snippet:
What's for sure, this issue happens on Node.js 16.0.0+ starting end of March, on Feb. nightly builds everything used to be OK.
The text was updated successfully, but these errors were encountered: