Skip to content
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

Failed to initialize the device #84

Open
Ming-desu opened this issue Aug 9, 2021 · 0 comments
Open

Failed to initialize the device #84

Ming-desu opened this issue Aug 9, 2021 · 0 comments

Comments

@Ming-desu
Copy link

Hello, I was trying to follow the quick start and I've encountered this error in getting the device information. At first, I was able to scan the IP Cameras in my network. But when I am about to get the information it throws this error. Would someone give some guide or I am missing something here? Thank you.

This is the error log:

Error: Failed to initialize the device: Error: 500 Internal Server Error - The data in element 'Security' must be understood but cannot be handled
at services.device.getCapabilities (/home/kamote/Desktop/onvif-node/node_modules/node-onvif/lib/modules/device.js:396:12)
at promise.then.catch (/home/kamote/Desktop/onvif-node/node_modules/node-onvif/lib/modules/service-device.js:120:4)
at process._tickCallback (internal/process/next_tick.js:68:7)

This is my sample code:

const onvif = require('node-onvif');

let device = new onvif.OnvifDevice({
xaddr: 'http://192.168.1.9:8899/onvif/device_service',
user: 'xxxx',
pass: 'xxxx'
});

device.init()
.then(info => {
console.log(JSON.stringify(info, null, ' '));
})
.catch(err => console.log(err));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant