I deployed a NodeJs Express App on App Engine. My app is linked with a SQL instance. My deploy works fine I have no error. The problem is when I want to access my app with http GET I always get the response 502 Bad Gateway | Nginx. If I check the logs the only info I have with gcloud app logs tail -s default is
2017-10-11 13:47:24 default[20171011t153940] "GET /" 502
router.get('/', function(req, res, next) {
return res.json({
result:"ok"
});
});