Closed WoodySlum closed 2 years ago
I have the same camera, and got the same error. The error is generated by the camera, when it receives a request without credentials.
Hacky patch: inside getSystemDateAndTime
check if the XML contains An error was discovered processing the wsse:Security header
in addition to checking for sender not authorized
. Something like:
if (xml && (xml.toLowerCase().includes('sender not authorized')
|| xml.toLowerCase().includes('wsse:security header'))) {
(unrelated to this bug, but might be of interest to @WoodySlum and others searching for that camera: the PTZ feature does not work via the ONVIF interface, the camera responds 200 OK
without response body)
Thanks @dakkar hope a camera firmware update
@WoodySlum Is that ok for you, can I close the issue?
Yes thanks
Thank you!
I have the same camera, and got the same error. The error is generated by the camera, when it receives a request without credentials. Hacky patch: inside
getSystemDateAndTime
check if the XML containsAn error was discovered processing the wsse:Security header
in addition to checking forsender not authorized
. Something like:if (xml && (xml.toLowerCase().includes('sender not authorized') || xml.toLowerCase().includes('wsse:security header'))) {
Hmm, looking interesting. I'll try to forward this issue to the same problem, which I had found today
the correct solution would be to notice the 401 and react accordingly (it means "unautorised, try again with credentials"), without looking at the body of the response at all
Hi, got a Victure PC530 camera, but when calling
connect
got an error :Any idea ? Thanks.