bartbutenaers / node-red-contrib-onvif-nodes

Node Red nodes for communicating with OnVif compliant IP devices
Apache License 2.0
65 stars 25 forks source link

Onvif Events crashed #14

Closed gsozzi87 closed 3 years ago

gsozzi87 commented 3 years ago

I am trying to subscribe to the events of a hikvision camera, but when I deploy the nodes I get the following error:

6 Oct 08:49:56 - TypeError: Cannot read property 'address' of undefined at Cam. (/home/ubuntu/.node-red/node_modules/node-red-contrib-onvif-nodes/node_modules/onvif/lib/events.js:207:41) at Array.forEach () at Cam. (/home/ubuntu/.node-red/node_modules/node-red-contrib-onvif-nodes/node_modules/onvif/lib/events.js:205:31) at Cam. (/home/ubuntu/.node-red/node_modules/node-red-contrib-onvif-nodes/node_modules/onvif/lib/events.js:151:12) at /home/ubuntu/.node-red/node_modules/node-red-contrib-onvif-nodes/node_modules/onvif/lib/utils.js:96:5 at Parser. (/home/ubuntu/.node-red/node_modules/xml2js/lib/parser.js:304:18) at Parser.emit (events.js:198:13) at SAXParser.onclosetag (/home/ubuntu/.node-red/node_modules/xml2js/lib/parser.js:262:26) at emit (/home/ubuntu/.node-red/node_modules/sax/lib/sax.js:624:35) at emitNode (/home/ubuntu/.node-red/node_modules/sax/lib/sax.js:629:5)

Could someone help me to know what I do wrong? Thanks and regards

gsozzi87 commented 3 years ago

I reinstalled with the following statement:

npm install bartbutenaers/node-red-contrib-onvif-nodes

and it was solved. sorry for the inconvenience. your work is great and is appreciated. Cheers!

bartbutenaers commented 3 years ago

Morning @gsozzi87, No problem!
Ah yes now I remember that on NPM is an old version. I have update the readme file to make clear that they have to install it from Github, and not NPM. I have no time at the moment to finish these nodes anyway ;-( Bart