I got (502 Bad Gateway nginx) from google cloud after I uploaded my node.js code to the app engine. I have no errors in my logs. I have done a lot of searching online and nothing helped, but I read some article saying that because the response time is long, the server returns (502 Bad Gateway).
This is my listening code:
const server = app.listen(8080, () => {
const host = server.address().address;
const port = server.address().port;
console.log("EDU-vents server started");
});
This is my app.yaml:
runtime: nodejs
env: flex
my package.json includes a start script
Thank you in advance.