scripting / xml-rpc

XML-RPC client and server in JavaScript.
MIT License
61 stars 28 forks source link

TypeError: Cannot read property 'message' of null #10

Closed fabiusss closed 4 years ago

fabiusss commented 4 years ago

Sometimes I get this kind of error. I can't manage it.

/home/ROOT/node_modules/davexmlrpc/xmlrpc.js:373 console.log ("xmlRpcClient: err.message == " + err.message); ^

TypeError: Cannot read property 'message' of null at Request._callback (/home/ROOT/node_modules/davexmlrpc/xmlrpc.js:373:55) at Request.self.callback (/home/ROOT/node_modules/request/request.js:185:22) at Request.emit (events.js:188:13) at Request. (/home/ROOT/node_modules/request/request.js:1161:10) at Request.emit (events.js:188:13) at IncomingMessage. (/home/ROOT/node_modules/request/request.js:1083:12) at Object.onceWrapper (events.js:276:13) at IncomingMessage.emit (events.js:193:15) at endReadableNT (_stream_readable.js:1129:12) at process.internalTickCallback (internal/process/next_tick.js:72:19)

My version: "davexmlrpc": { "version": "0.4.24", "resolved": "https://registry.npmjs.org/davexmlrpc/-/davexmlrpc-0.4.24.tgz", "integrity": "sha512-u9Cy4uFRnj0+DpZYYGrPemik+Nqtj3aeHxdtDFew86kPBq93eMSJIE5/HRuM0LmGAn6JAA/ArpRBmK5ZDsTT6w==", "requires": { "davehttp": "", "daveutils": "", "request": "", "xml2js": "" } },

scripting commented 4 years ago

Thanks for the report. There was an error in the code, which I fixed. The new version is 0.4.25.