Closed svk23 closed 1 year ago
Could you see what the StatusCode is when you get 'notauthorized'. String matching is fine and I can add in your fix, but I wondered what the Status Code was it may be worth adding to the 401 check
(in the mean time, I've applied your patch)
Could you see what the StatusCode is when you get 'notauthorized'. String matching is fine and I can add in your fix, but I wondered what the Status Code was it may be worth adding to the 401 check
(in the mean time, I've applied your patch)
Good question, but the value of the statusCode
when the XML contains notauthorized
is 500, so personally I would not add that to status code part of the condition.
(thanks for applying the change!)
500 - internal server error. What a weird Error Code to return.
As luck was have it I was testing some other changes in the ONVIF library today so have bumped it (including your fix) to 0.6.9 and it is now on NPM
Cam.getSystemDateAndTime() fails for some Vivotek camera's with:
ONVIF SOAP Fault: An error was discovered processing the <wsse:Security> header.
This seems to be a similar problem to the Panasonic and Digital Barriers camera's where authorization is required to retrieve the system date and time. The difference is that these Vivotek's return a slightly different message:
NotAuthorized
:If I extend the check in cam.js to include the test for
notauthorized
the connection to the camera works as expected. For example: