eu-evops / homebridge-hikvision

28 stars 21 forks source link

Issues with Fork #32

Open dswarne opened 2 years ago

dswarne commented 2 years ago

Hi All,

I'm hoping someone can assist with a fork of eu-evops/hpmebridge-hikvision, the fork is @ferronrsmith/homebridge-hikvision and is essentially functioning well however with one issue on the later NODE versions.

Error msg: (node:14388) UnhandledPromiseRejectionWarning: Error: Non-whitespace before first tag. Line: 0 Column: 1 Char: - at error (C:\Users-------\AppData\Roaming\npm\node_modules\@ferronrsmith\homebridge-hikvision\node_modules\sax\lib\sax.js:651:10) at strictFail (C:\Users------\AppData\Roaming\npm\node_modules\@ferronrsmith\homebridge-hikvision\node_modules\sax\lib\sax.js:677:7) at beginWhiteSpace (C:\Users------\AppData\Roaming\npm\node_modules\@ferronrsmith\homebridge-hikvision\node_modules\sax\lib\sax.js:951:7) at SAXParser.write (C:\Users------\AppData\Roaming\npm\node_modules\@ferronrsmith\homebridge-hikvision\node_modules\sax\lib\sax.js:1006:11) at Parser.exports.Parser.Parser.parseString (C:\Users-----\AppData\Roaming\npm\node_modules\@ferronrsmith\homebridge-hikvision\node_modules\xml2js\lib\parser.js:322:31) at Parser.parseString (C:\Users-----\AppData\Roaming\npm\node_modules\@ferronrsmith\homebridge-hikvision\node_modules\xml2js\lib\parser.js:4:59) at C:\Users-----\AppData\Roaming\npm\node_modules\@ferronrsmith\homebridge-hikvision\node_modules\xml2js\lib\parser.js:336:24 at new Promise () at Parser.exports.Parser.Parser.parseStringPromise (C:\Users----\AppData\Roaming\npm\node_modules\@ferronrsmith\homebridge-hikvision\node_modules\xml2js\lib\parser.js:334:14) at Parser.parseStringPromise (C:\Users-----\AppData\Roaming\npm\node_modules\@ferronrsmith\homebridge-hikvision\node_modules\xml2js\lib\parser.js:4:59) (node:14388) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 175)