-
Notifications
You must be signed in to change notification settings - Fork 198
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
TypeError: Cannot read property 'Width' of undefined #37
Comments
Thank you for your feedback. Sorry my reply is late. The Honeywell H4D2F is not available in Japan where I live. So I could not investigate this issue. I added the const onvif = require('node-onvif');
// Create an OnvifDevice object
let device = new onvif.OnvifDevice({
xaddr: 'http://192.168.10.10:80/onvif/device_service',
user : 'admin',
pass : '123456'
});
// Initialize the OnvifDevice object
device.init().then((info) => {
console.log(JSON.stringify(info, null, ' '));
}).catch((error) => {
console.error(error);
console.log('-----------------------------------');
console.log(JSON.stringify(device.lastResponse, null, ' '));
console.log('-----------------------------------');
}); |
I believe this issue is in this line: https://github.com/futomi/node-onvif/blob/master/lib/modules/device.js#L531 when a device returns a If I update the lines in
Complete example:
|
I also faced this problem, but this fix works. Thank you. Camera IMOU Bullet 4MP ! |
Using this example code below and of course changing the IP and login info
I get the folowing response from a camera
when I try with a newer version of the camera I get this
I was wondering what info might be needed to help this issue.
Thanks
The text was updated successfully, but these errors were encountered: