Closed donovat closed 5 years ago
Try changing the command:
in the manifest.yml
file to:
command: node server.js
Hi @germanattanasio I have applied the suggestion you mention to the manifest.yml file. However, it has not fixed the issue. I get the following in the browser; 502 Bad Gateway: Registered endpoint failed to handle the request.
And the following in the cloud application logs;
2018-11-02T23:17:13.01+0000 [APP/PROC/WEB/0]ERR RangeError: Invalid status code: ENOENT
2018-11-02T23:17:13.01+0000 [APP/PROC/WEB/0]ERR at ServerResponse.writeHead (_http_server.js:194:11)
2018-11-02T23:17:13.01+0000 [APP/PROC/WEB/0]ERR at ServerResponse.writeHead (/home/vcap/app/node_modules/on-headers/index.js:55:19)
2018-11-02T23:17:13.01+0000 [APP/PROC/WEB/0]ERR at ServerResponse._implicitHeader (_http_server.js:185:8)
2018-11-02T23:17:13.01+0000 [APP/PROC/WEB/0]ERR at write_ (_http_outgoing.js:632:9)
2018-11-02T23:17:13.01+0000 [APP/PROC/WEB/0]ERR at ServerResponse.end (_http_outgoing.js:751:5)
2018-11-02T23:17:13.01+0000 [APP/PROC/WEB/0]ERR at ServerResponse.send (/home/vcap/app/node_modules/express/lib/response.js:221:10)
2018-11-02T23:17:13.01+0000 [APP/PROC/WEB/0]ERR at ServerResponse.json (/home/vcap/app/node_modules/express/lib/response.js:267:15)
2018-11-02T23:17:13.01+0000 [APP/PROC/WEB/0]ERR at app.use (/home/vcap/app/config/error-handler.js:17:28)
2018-11-02T23:17:13.01+0000 [APP/PROC/WEB/0]ERR at Layer.handle_error (/home/vcap/app/node_modules/express/lib/router/layer.js:71:5)
2018-11-02T23:17:13.01+0000 [APP/PROC/WEB/0]ERR at trim_prefix (/home/vcap/app/node_modules/express/lib/router/index.js:315:13)
2018-11-02T23:17:13.01+0000 [APP/PROC/WEB/0]OUT GET / 500 10.660 ms - 148
I'm going to spend some time this weekend and let you know what I find
Sorry the updated code does not seem to fix the issue. Still seeing the errors above when I try and open the initial app page.
:tada: This issue has been resolved in version 1.0.1 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Hi Steps: