Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined data from datasource provokes a service restart #112

Open
fra967 opened this issue Jan 19, 2017 · 0 comments
Open

Undefined data from datasource provokes a service restart #112

fra967 opened this issue Jan 19, 2017 · 0 comments
Assignees

Comments

@fra967
Copy link

fra967 commented Jan 19, 2017

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)

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

No branches or pull requests

2 participants