Skip to content

Failed to initialize the device. #96

@yh4922

Description

@yh4922

Error occurred during camera initialization

TypeError: Cannot read property 'getProfiles' of null
    at /civiapp_wsldev/node_modules/node-onvif/lib/modules/device.js:469:23
    at new Promise (<anonymous>)
    at OnvifDevice._mediaGetProfiles (/civiapp_wsldev/node_modules/node-onvif/lib/modules/device.js:466:16)
    at /civiapp_wsldev/node_modules/node-onvif/lib/modules/device.js:352:16
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5) {stack: "TypeError: Cannot read property 'getProfiles'…ctions (internal/process/task_queues.js:97:5)", message: "Cannot read property 'getProfiles' of null"}

The device seems to be functioning properly, but an error occurred during initialization. Upon investigation, I noticed that the data structure of this camera is slightly different from that of another successful camera.

Data for the failed camera:
Error occurred during camera initialization

TypeError: Cannot read property 'getProfiles' of null
    at /civiapp_wsldev/node_modules/node-onvif/lib/modules/device.js:469:23
    at new Promise (<anonymous>)
    at OnvifDevice._mediaGetProfiles (/civiapp_wsldev/node_modules/node-onvif/lib/modules/device.js:466:16)
    at /civiapp_wsldev/node_modules/node-onvif/lib/modules/device.js:352:16
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5) {stack: "TypeError: Cannot read property 'getProfiles'…ctions (internal/process/task_queues.js:97:5)", message: "Cannot read property 'getProfiles' of null"}

The device seems to be functioning properly, but an error occurred during initialization. Upon investigation, I noticed that the data structure of this camera is slightly different from that of another successful camera.

Failed Successful
image image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions