core: Cameras becoming unavailable, bad HTTP request

The problem

I have 6 Reolink cameras connected in Home Assistant. After some time, some of them will become unavailable even though they are still connected and accessible via HTTP and the Reolink app. Once unavailable, the integration also is not able to be reloaded and gives the following error:

Logger: reolink_aio.api
Source: components/reolink/host.py:202
First occurred: 8:36:15 AM (1 occurrences)
Last logged: 8:36:15 AM

Host 192.168.1.16:443: subscription request got a response with wrong HTTP status 400: Bad Request

What version of Home Assistant Core has the issue?

core-2023.5.2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Reolink

Link to integration documentation on our website

https://www.home-assistant.io/integrations/reolink/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: reolink_aio.api
Source: components/reolink/host.py:202
First occurred: 8:36:15 AM (1 occurrences)
Last logged: 8:36:15 AM

Host 192.168.1.16:443: subscription request got a response with wrong HTTP status 400: Bad Request

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 20 (8 by maintainers)

Most upvoted comments

Is it true that everyone here did not have this particular problem on Home Assistant 2023.4.6 (or lower) and started having this issue since 2023.5.x?

Thanks to @ggatenby comment, I looked into the diffrences since HA 2023.4.6 and discovered a login mutex deadlock that was introduced in HA 2023.5.x (my appologies, that was my fault). That could explain the issues you all are seeing.

I have fixed this deadlock in the upstream library and just published a new reolink-aio version 0.5.15 https://github.com/starkillerOG/reolink_aio/releases.

This HomeAssistant PR will incorporate the fix in HA and I scheduled it for HA 2023.5.3, so hopefully the fix will be available in a few days. Once it is available, I will let you know and will ask to test if it is then resolved.

Fix has been merged, so will indeed be included in HA 2023.5.3.

Timeout issue here as well - appears related to 2023.5.x. Have restored back to 2023.4.6 and issue no longer present but no longer have logs. Cameras work for a while then drop off, either both at the same time or different times but neither appears to recover. Same issue is observed on multiple client browsers and cameras remain working over HTTP in browser

Cameras are wired POE RLC-810A firmware v3.1.0.956_22041503 and RLC-520 (IPC_51516M5M) firmware v3.0.0.136_20121111