hey matt,
i just tested your new release for motion detection of Hikvision camera and i am getting unauthorized access errors. below is the debug log output of binding.
and my PaperUI is not updating motion Enable/Disable button based on “Motion detection Feature” in camera as it is updating for @toroid…
10:59:02.845 [DEBUG] [ding.ipcamera.handler.IpCameraHandler] - DefaultHttpResponse(decodeResult: success, version: HTTP/1.1)
HTTP/1.1 401 Unauthorized
Date: Tue, 22 May 2018 10:59:57 GMT
Server: App-webs/
Content-Length: 264
Content-Type: text/html
Connection: close
WWW-Authenticate: Digest qop=“auth”, realm=“DS-2CD1121-I”, nonce=“4d546c464d444933517a4d364f4463344d5463304d44413d”, stale=“FALSE”
WWW-Authenticate: Basic realm=“DS-2CD1121-I”
10:59:03.219 [DEBUG] [ding.ipcamera.handler.IpCameraHandler] - DefaultLastHttpContent(data: PooledSlicedByteBuf(ridx: 0, widx: 264, cap: 264/264, unwrapped: PooledUnsafeDirectByteBuf(ridx: 592, widx: 592, cap: 1024)), decoderResult: success)
10:59:03.436 [DEBUG] [ding.ipcamera.handler.IpCameraHandler] - HTTP Result back from camera is :
Document Error: Unauthorized
Access Error: 401 -- Unauthorized
Authentication Error: Your client does not have permission to get URL /MotionDetection/1 from this server.
:
Here is a little more of the log file.
11:04:31.339 [DEBUG] [ding.ipcamera.handler.IpCameraHandler] - Trying to connect with new request for camera at IP:172.29.8.70
11:04:31.428 [DEBUG] [ding.ipcamera.handler.IpCameraHandler] - + The request is going to be GET:/MotionDetection/1:
11:04:31.508 [DEBUG] [.ipcamera.internal.MyNettyAuthHandler] - 401: This reply from the camera is normal if it needs Basic or Digest auth details.
11:04:31.630 [DEBUG] [ding.ipcamera.handler.IpCameraHandler] - Trying to connect with new request for camera at IP:172.29.8.70
11:04:31.746 [DEBUG] [ding.ipcamera.handler.IpCameraHandler] - + The request is going to be GET:/MotionDetection/1:
11:04:31.869 [DEBUG] [ding.ipcamera.handler.IpCameraHandler] - DefaultHttpResponse(decodeResult: success, version: HTTP/1.1)
HTTP/1.1 200 OK
Date: Tue, 22 May 2018 11:05:27 GMT
Server: App-webs/
Connection: close
Content-Length: 406
Content-Type: application/xml
11:04:32.097 [DEBUG] [ding.ipcamera.handler.IpCameraHandler] - DefaultLastHttpContent(data: PooledSlicedByteBuf(ridx: 0, widx: 406, cap: 406/406, unwrapped: PooledUnsafeDirectByteBuf(ridx: 552, widx: 552, cap: 1024)), decoderResult: success)
11:04:32.291 [DEBUG] [ding.ipcamera.handler.IpCameraHandler] - HTTP Result back from camera is :<?xml version="1.0" encoding="UTF-8"?>
1
true
grid
18
22
4
:
11:04:32.727 [DEBUG] [ding.ipcamera.handler.IpCameraHandler] - DefaultHttpResponse(decodeResult: success, version: HTTP/1.1)
HTTP/1.1 401 Unauthorized
Date: Tue, 22 May 2018 11:05:27 GMT
Server: App-webs/
Content-Length: 264
Content-Type: text/html
Connection: close
WWW-Authenticate: Digest qop=“auth”, realm=“DS-2CD1121-I”, nonce=“4e304d774e54457a525545364f4463344e6a646a5a44553d”, stale=“FALSE”
WWW-Authenticate: Basic realm=“DS-2CD1121-I”
11:04:33.092 [DEBUG] [ding.ipcamera.handler.IpCameraHandler] - DefaultLastHttpContent(data: PooledSlicedByteBuf(ridx: 0, widx: 264, cap: 264/264, unwrapped: PooledUnsafeDirectByteBuf(ridx: 592, widx: 592, cap: 1024)), decoderResult: success)
11:04:33.287 [DEBUG] [ding.ipcamera.handler.IpCameraHandler] - HTTP Result back from camera is :
Document Error: Unauthorized
Access Error: 401 -- Unauthorized
Authentication Error: Your client does not have permission to get URL /MotionDetection/1 from this server.