safak / youtube

5.04k stars 5.47k forks source link

uploading Images to Heroku ERROR #34

Open charan-web opened 2 years ago

charan-web commented 2 years ago

I recently deployed to Heroku , Every route works fine until except socket.io and /api/upload on index.js .I got this Error TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined. I Copied the exact code from index.js from this github to my local file.

Herokku gives this eroor:


code=H13 desc="Connection closed without response" method=POST path="/api/upload" status=503```

sometimes like this
```at=error 
code=H12 desc="Request timeout" method=POST path="/api/upload" status=503```
samyogdhital commented 2 years ago

I think you need to deploy front end and backend seperately.