kushagharahi / homebridge-dahua-alerts

Routes motion alerts for Dahua and Lorex camera streams to homebridge-camera-ffmpeg
27 stars 13 forks source link

Scrolling errors but it's working. #22

Closed magic7s closed 3 years ago

magic7s commented 3 years ago

I'm getting constant scrolling errors but it's working. I have two cameras that are receiving motion update and it's great. I've done a pcap on the network interface, and yes the plugin keeps trying the url but receives 40X from the camera.

FYI - no NVR, only two cameras.

[29/08/2021, 20:29:02] Loaded plugin: homebridge-dahua-alerts@1.1.5
[29/08/2021, 20:29:02] Registering platform 'homebridge-dahua-alerts.dahua-alerts'
[29/08/2021, 20:29:12] [dahua-alerts] Initializing dahua-alerts platform...
[29/08/2021, 20:29:13] [dahua-alerts] Error Received (for more info enable debug logging)
[29/08/2021, 20:29:13] [dahua-alerts] Error Details: Status Code: 400 Response: Bad Request
[29/08/2021, 20:29:13] [dahua-alerts] Reconnecting in 10s.
[29/08/2021, 20:29:23] [dahua-alerts] Error Received (for more info enable debug logging)
[29/08/2021, 20:29:23] [dahua-alerts] Error Details: Status Code: 400 Response: Bad Request
[29/08/2021, 20:29:23] [dahua-alerts] Reconnecting in 10s.
[29/08/2021, 20:29:33] [dahua-alerts] Error Received (for more info enable debug logging)
[29/08/2021, 20:29:33] [dahua-alerts] Error Details: Status Code: 400 Response: Bad Request
[29/08/2021, 20:29:33] [dahua-alerts] Reconnecting in 10s.
[29/08/2021, 20:29:43] [dahua-alerts] Socket connection timed out or closed by NVR.
[29/08/2021, 20:29:43] [dahua-alerts] Reconnecting in 1s.
[29/08/2021, 20:29:49] [dahua-alerts] Error Received (for more info enable debug logging)
[29/08/2021, 20:29:49] [dahua-alerts] Error Details: Status Code: 400 Response: Bad Request
[29/08/2021, 20:29:49] [dahua-alerts] Reconnecting in 10s.
[29/08/2021, 20:29:49] [dahua-alerts] Response recieved: HTTP/1.1 200 OK
[29/08/2021, 20:29:49] [dahua-alerts] Could not parse event data: HTTP/1.1 200 OK
[29/08/2021, 20:29:59] [dahua-alerts] Error Received (for more info enable debug logging)
[29/08/2021, 20:29:59] [dahua-alerts] Error Details: Status Code: 400 Response: Bad Request
[29/08/2021, 20:29:59] [dahua-alerts] Reconnecting in 10s.
[29/08/2021, 20:30:09] [dahua-alerts] Error Received (for more info enable debug logging)
[29/08/2021, 20:30:09] [dahua-alerts] Error Details: Status Code: 400 Response: Bad Request
[29/08/2021, 20:30:09] [dahua-alerts] Reconnecting in 10s.
[29/08/2021, 20:30:23] [dahua-alerts] Socket connection timed out or closed by NVR.
[29/08/2021, 20:30:23] [dahua-alerts] Reconnecting in 1s.
[29/08/2021, 20:30:24] [dahua-alerts] Error Received (for more info enable debug logging)
[29/08/2021, 20:30:24] [dahua-alerts] Error Details: Status Code: 400 Response: Bad Request
[29/08/2021, 20:30:24] [dahua-alerts] Reconnecting in 10s.
[29/08/2021, 20:30:24] [dahua-alerts] Response recieved: HTTP/1.1 200 OK
[29/08/2021, 20:30:24] [dahua-alerts] Could not parse event data: HTTP/1.1 200 OK
[29/08/2021, 20:30:34] [dahua-alerts] Error Received (for more info enable debug logging)
[29/08/2021, 20:30:34] [dahua-alerts] Error Details: Status Code: 400 Response: Bad Request
[29/08/2021, 20:30:34] [dahua-alerts] Reconnecting in 10s.
[29/08/2021, 20:30:44] [dahua-alerts] Error Received (for more info enable debug logging)
[29/08/2021, 20:30:44] [dahua-alerts] Error Details: Status Code: 400 Response: Bad Request
[29/08/2021, 20:30:44] [dahua-alerts] Reconnecting in 10s.
[29/08/2021, 20:30:54] [dahua-alerts] Error Received (for more info enable debug logging)
[29/08/2021, 20:30:54] [dahua-alerts] Error Details: Status Code: 400 Response: Bad Request
[29/08/2021, 20:30:54] [dahua-alerts] Reconnecting in 10s.
[29/08/2021, 20:30:54] [dahua-alerts] Socket connection timed out or closed by NVR.
[29/08/2021, 20:30:54] [dahua-alerts] Reconnecting in 1s.
[29/08/2021, 20:30:56] [dahua-alerts] Response recieved: HTTP/1.1 200 OK
[29/08/2021, 20:30:56] [dahua-alerts] Could not parse event data: HTTP/1.1 200 OK
[29/08/2021, 20:31:04] [dahua-alerts] Error Received (for more info enable debug logging)
[29/08/2021, 20:31:04] [dahua-alerts] Error Details: Status Code: 400 Response: Bad Request
[29/08/2021, 20:31:04] [dahua-alerts] Reconnecting in 10s.
[29/08/2021, 20:31:14] [dahua-alerts] Error Received (for more info enable debug logging)
[29/08/2021, 20:31:14] [dahua-alerts] Error Details: Status Code: 400 Response: Bad Request
[29/08/2021, 20:31:14] [dahua-alerts] Reconnecting in 10s.
[29/08/2021, 20:31:24] [dahua-alerts] Error Received (for more info enable debug logging)
[29/08/2021, 20:31:24] [dahua-alerts] Error Details: Status Code: 400 Response: Bad Request
[29/08/2021, 20:31:24] [dahua-alerts] Reconnecting in 10s.
[29/08/2021, 20:31:26] [dahua-alerts] Socket connection timed out or closed by NVR.
[29/08/2021, 20:31:26] [dahua-alerts] Reconnecting in 1s.
[29/08/2021, 20:31:27] [dahua-alerts] Response recieved: HTTP/1.1 200 OK
[29/08/2021, 20:31:27] [dahua-alerts] Could not parse event data: HTTP/1.1 200 OK
[29/08/2021, 20:31:34] [dahua-alerts] Error Received (for more info enable debug logging)
[29/08/2021, 20:31:34] [dahua-alerts] Error Details: Status Code: 400 Response: Bad Request
[29/08/2021, 20:31:34] [dahua-alerts] Reconnecting in 10s.
[29/08/2021, 20:31:44] [dahua-alerts] Error Received (for more info enable debug logging)
[29/08/2021, 20:31:44] [dahua-alerts] Error Details: Status Code: 400 Response: Bad Request
[29/08/2021, 20:31:44] [dahua-alerts] Reconnecting in 10s.
[29/08/2021, 20:31:55] [dahua-alerts] Error Received (for more info enable debug logging)
[29/08/2021, 20:31:55] [dahua-alerts] Error Details: Status Code: 400 Response: Bad Request
[29/08/2021, 20:31:55] [dahua-alerts] Reconnecting in 10s.
[29/08/2021, 20:31:57] [dahua-alerts] Socket connection timed out or closed by NVR.
[29/08/2021, 20:31:57] [dahua-alerts] Reconnecting in 1s.
[29/08/2021, 20:31:58] [dahua-alerts] Response recieved: HTTP/1.1 200 OK
[29/08/2021, 20:31:58] [dahua-alerts] Could not parse event data: HTTP/1.1 200 OK
kushagharahi commented 3 years ago

Thanks for posting debug logs, moving this conversation over to issue #21