I have uploaded a web app to AWS, but once uploaded it gives me the error. The app that I'm trying to hang is total.js
502 Bad Gateway
I have reviewed the logs, and I do not see it clearly ... The following error appears in the node.js log
2018-10-28 11:44:48: TypeError: require(...) is not a function TypeError: require(...) is not a function
at Object.<anonymous> (/var/app/current/debug.js:17:35)
This is the error in the nginx
2018/10/28 11:52:43 [error] 3633#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 93.176.133.146, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8081/"
Any suggestions?