waleedahmad / nverter

Video converter web app build with Node, React and React
https://quantizd.com/building-a-video-converter-app-with-node-js-express-and-react/
27 stars 10 forks source link

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined #1

Open raitalharehman opened 5 years ago

raitalharehman commented 5 years ago

Error while upload file my node version v10.15.2 Error Log

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined at assertPath (path.js:39:11) at Object.join (path.js:432:7) at app.post (D:\WorkspaceHub\nverter2\server.js:52:32) at Layer.handle [as handle_request] (D:\WorkspaceHub\nverter2\node_modules\express\lib\router\layer.js:95:5) at next (D:\WorkspaceHub\nverter2\node_modules\express\lib\router\route.js:137:13) at Immediate._onImmediate (D:\WorkspaceHub\nverter2\node_modules\multer\lib\make-middleware.js:53:37) at runCallback (timers.js:706:11) at tryOnImmediate (timers.js:676:5) at processImmediate (timers.js:658:5)

vrobik commented 5 years ago

I had similar errors, but it was because i use localhost:3000 in browser if you use it like this try to change it to 127.0.0.1:3000 this help me, probably because of limitation of localhost domain app can't use something, like local storage, cookies or something else i don't debug it 😁

raitalharehman commented 5 years ago

i think author has resolved this issue but right know i am facing

xhr.js:178 POST http://localhost:8989/upload 500 (Internal Server Error) this issue

Gilb03 commented 4 years ago

I am experiencing this issue as well. First thing is that when I run nodemon- and select a file to be uploaded- the file is being uploaded into the appropriate folder, but it is not being transported to the encoding folder. The error I get is the same as the above.

I've updated my dependencies, researched the path syntax, deleted node modules and reinstalled them. I've changed the browser file path to 127.0.0.1:3000 and I still receive the same error. If I restart the server too much I get the upload error, which I know is false because it still loads the file into the upload folder locally.

I'm being forced to look at the syntax of path.join as an issue, but when I adjust that, this does not work either. Is there any recourse for my issue?

Screen Shot 2020-02-24 at 6 59 23 PM
waleedahmad commented 4 years ago

I am experiencing this issue as well. First thing is that when I run nodemon- and select a file to be uploaded- the file is being uploaded into the appropriate folder, but it is not being transported to the encoding folder. The error I get is the same as the above.

I've updated my dependencies, researched the path syntax, deleted node modules and reinstalled them. I've changed the browser file path to 127.0.0.1:3000 and I still receive the same error. If I restart the server too much I get the upload error, which I know is false because it still loads the file into the upload folder locally.

I'm being forced to look at the syntax of path.join as an issue, but when I adjust that, this does not work either. Is there any recourse for my issue?

Screen Shot 2020-02-24 at 6 59 23 PM

Node version? OS?

Gilb03 commented 4 years ago

My OS version is Mac Catalina 10.15.3 and my Node version is 11.3.0 @waleedahmad

kusaasira commented 4 years ago

Any work arounds for this till now?

topninja commented 4 years ago

any progress yet?