Why am I getting a 504 error?

Hey everyone,

I’m building my file metadata app on glitch:

I’m getting a 504 Gateway timeout error.
I commented all out and started uncommenting part by part and I’m sure it’s got something to do with the app.use and the requires at the top, particularly I think multer is the culprit but I don’t know how to fix it. I’ve googled around and can’t find anything. Can someone with more experience please review my app and help me out?

deleted the app.use(multer) and it worked.