Skip to content
This repository has been archived by the owner on Jun 27, 2019. It is now read-only.

nodejs 4.5 issue #151

Open
yongli3 opened this issue Dec 9, 2016 · 1 comment
Open

nodejs 4.5 issue #151

yongli3 opened this issue Dec 9, 2016 · 1 comment

Comments

@yongli3
Copy link

yongli3 commented Dec 9, 2016

With nodejs 4.5, the app crashes and I receive the below error message, nodejs 4.2.6 is okay.
Running command sol-fbp-runner -c /opt/soletta-dev-app/repos/singlesession/demo/minnow-calamari/.calamari-lever.fbp
stdout: '/opt/soletta-dev-app/repos/singlesession/demo/minnow-calamari/.calamari-lever.fbp' - Syntax OK

closing code: 0
_http_server.js:192
throw new RangeError(Invalid status code: ${statusCode});
^

RangeError: Invalid status code: 0
at ServerResponse.writeHead (_http_server.js:192:11)
at ServerResponse.writeHead (/opt/soletta-dev-app/node_modules/morgan/node_modules/on-headers/index.js:55:19)
at ServerResponse._implicitHeader (_http_server.js:157:8)
at ServerResponse.OutgoingMessage.end (_http_outgoing.js:573:10)
at ServerResponse.send (/opt/soletta-dev-app/node_modules/express/lib/response.js:204:10)
at ServerResponse.sendStatus (/opt/soletta-dev-app/node_modules/express/lib/response.js:341:15)
at ChildProcess. (/opt/soletta-dev-app/server/routes.js:303:29)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:829:16)

@yongli3
Copy link
Author

yongli3 commented Jan 4, 2017

A workaround: Modify the node_modules/express/lib/response.js, change return this.send(body); to
return this.send(body ? 200 : 500);

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant