web
web copied to clipboard
Undefined data from datasource provokes a service restart
Under load test, I see this error in the logs. I guess this is caused by some datasource failing under stress. Could it be possible to capture this error in the log and avoid a service restart?
DADI Web 1.6.15
[2017-01-19 11:56:05.811] [LOG] TypeError: Cannot read property 'hasOwnProperty' of undefined
at /dadi/web/node_modules/@dadi/web/dadi/lib/controller/index.js:92:16
at Array.every (native)
at Function._.every._.all (/dadi/web/node_modules/@dadi/web/node_modules/underscore/underscore.js:194:62)
at Controller.requiredDataPresent (/dadi/web/node_modules/@dadi/web/dadi/lib/controller/index.js:91:12)
at /dadi/web/node_modules/@dadi/web/dadi/lib/controller/index.js:166:17
at /dadi/web/node_modules/@dadi/web/dadi/lib/controller/index.js:305:27
at ClientRequest.<anonymous> (/dadi/web/node_modules/@dadi/web/dadi/lib/help.js:451:16)
at emitOne (events.js:77:13)
at ClientRequest.emit (events.js:169:7)
at Socket.socketErrorListener (_http_client.js:269:9)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)
at emitErrorNT (net.js:1267:8)
at nextTickCallbackWith2Args (node.js:458:9)
at process._tickDomainCallback (node.js:413:17)