mrhieu1311

Results 4 comments of mrhieu1311

> BTW, in related code at the point of the original reported error, this `.then()` callback is a "no-op": > > ``` > .then(function (sapi_data) { > return sapi_data; >...

> For the body it's something like: > > ``` > var body = ''; > res.on('data', function (data) { > body += data; > }); > > res.on('end', function(data)...

> ``` > diff --git a/lib/api_service.js b/lib/api_service.js > index 2f0bde8..46002e8 100644 > --- a/lib/api_service.js > +++ b/lib/api_service.js > @@ -28,13 +28,13 @@ module.exports = { > } > res.setEncoding('utf8'); >...

[ { "arguments": { "Dhcp4": { "control-socket": { "socket-name": "/tmp/kea-dhcp4-ctrl.sock", "socket-type": "unix" }, "decline-probation-period": 86400, "dhcp-ddns": { "always-include-fqdn": false, "enable-updates": false, "generated-prefix": "myhost", "max-queue-size": 1024, "ncr-format": "JSON", "ncr-protocol": "UDP", "override-client-update":...