Wednesday 30 August 2017

Problem with node app on server.

events.js:160 throw er; // Unhandled 'error' event ^Error: Can't set headers after they are sent. at ServerResponse.OutgoingMessage.setHeader (_http_outgoing.js:357:11) at ServerResponse.header (/opt/bitnami/apps/giftshop/node_modules/express/lib/response.js:730:10) at ServerResponse.json (/opt/bitnami/apps/giftshop/node_modules/express/lib/response.js:253:10) at /opt/bitnami/apps/giftshop/app/routes.js:11:13 at /opt/bitnami/apps/giftshop/node_modules/mongoose/lib/model.js:3822:16 at /opt/bitnami/apps/giftshop/node_modules/kareem/index.js:213:48 at /opt/bitnami/apps/giftshop/node_modules/kareem/index.js:131:16 at _combinedTickCallback (internal/process/next_tick.js:73:7) at process._tickCallback (internal/process/next_tick.js:104:9)I'm trying to run an angular app on a mean stack and if I run it locally, it works fine I've deployed it to a server using this guide http://ift.tt/1J3WGas I'm getting the above error - the page loads but breaks at the same timeI'm kind of lost as to how to debug this - can someone point me in the right direction?

Submitted August 30, 2017 at 05:14PM by goingtoriseup

No comments:

Post a Comment