fwestenberg / reolink_dev

Home Assistant Reolink addon
MIT License
550 stars 102 forks source link

Error renewing the Reolink subscription #110

Open badabing2005 opened 3 years ago

badabing2005 commented 3 years ago

image

I originally posted the issue here: _Originally posted by @badabing2005 in https://github.com/fwestenberg/reolink_dev/issues/94#issuecomment-746281509_

That issue being closed, I'm logging this as a new issue so that we can keep track of it.

I enabled debug logging and managed to capture a bit more details though I'm not sure if it is enough. It looks like the http response code is 400 Bad request? Perhaps the request in case of NVR is not correct?

2020-12-20 08:20:07 ERROR (MainThread) [custom_components.reolink_dev.base] Host 192.168.1.100 error renewing the Reolink subscription

2020-12-20 08:20:07 DEBUG (MainThread) [reolink.subscription_manager] Reolink host 192.168.1.100 got response status: 400. Payload: {<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:xmime="http://tempuri.org/xmime.xsd" xmlns:xmime5="http://www.w3.org/2005/05/xmlmime" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:ns1="http://www.onvif.org/ver10/actionengine/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:ns10="http://www.onvif.org/ver10/events/wsdl/PullPointBinding" xmlns:ns11="http://www.onvif.org/ver10/events/wsdl/CreatePullPointBinding" xmlns:ns12="http://www.onvif.org/ver10/events/wsdl/PausableSubscriptionManagerBinding" xmlns:ns13="http://www.onvif.org/ver10/network/wsdl/RemoteDiscoveryBinding" xmlns:ns14="http://www.onvif.org/ver10/network/wsdl/DiscoveryLookupBinding" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:ns3="http://www.onvif.org/ver20/analytics/wsdl/RuleEngineBinding" xmlns:ns4="http://www.onvif.org/ver20/analytics/wsdl/AnalyticsEngineBinding" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:ns5="http://www.onvif.org/ver10/events/wsdl/PullPointSubscriptionBinding" xmlns:ns6="http://www.onvif.org/ver10/events/wsdl/EventBinding" xmlns:ns7="http://www.onvif.org/ver10/events/wsdl/SubscriptionManagerBinding" xmlns:ns8="http://www.onvif.org/ver10/events/wsdl/NotificationProducerBinding" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:ns9="http://www.onvif.org/ver10/events/wsdl/NotificationConsumerBinding" xmlns:tad="http://www.onvif.org/ver10/analyticsdevice/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tls="http://www.onvif.org/ver10/display/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trc="http://www.onvif.org/ver10/recording/wsdl" xmlns:trp="http://www.onvif.org/ver10/replay/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:trv="http://www.onvif.org/ver10/receiver/wsdl" xmlns:tse="http://www.onvif.org/ver10/search/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"><SOAP-ENV:Header></SOAP-ENV:Header><SOAP-ENV:Body><SOAP-ENV:Fault><SOAP-ENV:Code><SOAP-ENV:Value>SOAP-ENV:Sender</SOAP-ENV:Value></SOAP-ENV:Code><SOAP-ENV:Reason><SOAP-ENV:Text xml:lang="en"/></SOAP-ENV:Reason></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
}

2020-12-20 08:20:07 DEBUG (MainThread) [custom_components.reolink_dev] Finished fetching reolink data in 0.305 seconds
fwestenberg commented 3 years ago

Error logs should be gone now. Right?

badabing2005 commented 3 years ago

Unfortunately no, The minute I added more cameras they came back,

2020-12-21 17:33:47 DEBUG (MainThread) [reolink.subscription_manager] Reolink host 192.168.1.100 got response status: 400. Payload: {<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:xmime="http://tempuri.org/xmime.xsd" xmlns:xmime5="http://www.w3.org/2005/05/xmlmime" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:ns1="http://www.onvif.org/ver10/actionengine/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:ns10="http://www.onvif.org/ver10/events/wsdl/PullPointBinding" xmlns:ns11="http://www.onvif.org/ver10/events/wsdl/CreatePullPointBinding" xmlns:ns12="http://www.onvif.org/ver10/events/wsdl/PausableSubscriptionManagerBinding" xmlns:ns13="http://www.onvif.org/ver10/network/wsdl/RemoteDiscoveryBinding" xmlns:ns14="http://www.onvif.org/ver10/network/wsdl/DiscoveryLookupBinding" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:ns3="http://www.onvif.org/ver20/analytics/wsdl/RuleEngineBinding" xmlns:ns4="http://www.onvif.org/ver20/analytics/wsdl/AnalyticsEngineBinding" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:ns5="http://www.onvif.org/ver10/events/wsdl/PullPointSubscriptionBinding" xmlns:ns6="http://www.onvif.org/ver10/events/wsdl/EventBinding" xmlns:ns7="http://www.onvif.org/ver10/events/wsdl/SubscriptionManagerBinding" xmlns:ns8="http://www.onvif.org/ver10/events/wsdl/NotificationProducerBinding" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:ns9="http://www.onvif.org/ver10/events/wsdl/NotificationConsumerBinding" xmlns:tad="http://www.onvif.org/ver10/analyticsdevice/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tls="http://www.onvif.org/ver10/display/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trc="http://www.onvif.org/ver10/recording/wsdl" xmlns:trp="http://www.onvif.org/ver10/replay/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:trv="http://www.onvif.org/ver10/receiver/wsdl" xmlns:tse="http://www.onvif.org/ver10/search/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"><SOAP-ENV:Header><wsa5:To SOAP-ENV:mustUnderstand="1">None</wsa5:To><wsa5:Action SOAP-ENV:mustUnderstand="1">http://docs.oasis-open.org/wsn/bw-2/SubscriptionManager/RenewRequest</wsa5:Action></SOAP-ENV:Header><SOAP-ENV:Body><SOAP-ENV:Fault><SOAP-ENV:Code><SOAP-ENV:Value>SOAP-ENV:Sender</SOAP-ENV:Value></SOAP-ENV:Code><SOAP-ENV:Reason><SOAP-ENV:Text xml:lang="en"/></SOAP-ENV:Reason></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
}
2020-12-21 17:33:47 DEBUG (MainThread) [reolink.subscription_manager] Reolink host 192.168.1.100 got response status: 400. Payload: {<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:xmime="http://tempuri.org/xmime.xsd" xmlns:xmime5="http://www.w3.org/2005/05/xmlmime" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:ns1="http://www.onvif.org/ver10/actionengine/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:ns10="http://www.onvif.org/ver10/events/wsdl/PullPointBinding" xmlns:ns11="http://www.onvif.org/ver10/events/wsdl/CreatePullPointBinding" xmlns:ns12="http://www.onvif.org/ver10/events/wsdl/PausableSubscriptionManagerBinding" xmlns:ns13="http://www.onvif.org/ver10/network/wsdl/RemoteDiscoveryBinding" xmlns:ns14="http://www.onvif.org/ver10/network/wsdl/DiscoveryLookupBinding" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:ns3="http://www.onvif.org/ver20/analytics/wsdl/RuleEngineBinding" xmlns:ns4="http://www.onvif.org/ver20/analytics/wsdl/AnalyticsEngineBinding" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:ns5="http://www.onvif.org/ver10/events/wsdl/PullPointSubscriptionBinding" xmlns:ns6="http://www.onvif.org/ver10/events/wsdl/EventBinding" xmlns:ns7="http://www.onvif.org/ver10/events/wsdl/SubscriptionManagerBinding" xmlns:ns8="http://www.onvif.org/ver10/events/wsdl/NotificationProducerBinding" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:ns9="http://www.onvif.org/ver10/events/wsdl/NotificationConsumerBinding" xmlns:tad="http://www.onvif.org/ver10/analyticsdevice/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tls="http://www.onvif.org/ver10/display/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trc="http://www.onvif.org/ver10/recording/wsdl" xmlns:trp="http://www.onvif.org/ver10/replay/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:trv="http://www.onvif.org/ver10/receiver/wsdl" xmlns:tse="http://www.onvif.org/ver10/search/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"><SOAP-ENV:Header><wsa5:To SOAP-ENV:mustUnderstand="1">None</wsa5:To><wsa5:Action SOAP-ENV:mustUnderstand="1">http://docs.oasis-open.org/wsn/bw-2/SubscriptionManager/UnsubscribeRequest</wsa5:Action></SOAP-ENV:Header><SOAP-ENV:Body><SOAP-ENV:Fault><SOAP-ENV:Code><SOAP-ENV:Value>SOAP-ENV:Sender</SOAP-ENV:Value></SOAP-ENV:Code><SOAP-ENV:Reason><SOAP-ENV:Text xml:lang="en"/></SOAP-ENV:Reason></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
}
2020-12-21 17:33:47 ERROR (MainThread) [custom_components.reolink_dev.base] Host 192.168.1.100 error renewing the Reolink subscription
2020-12-21 17:33:47 DEBUG (MainThread) [reolink.subscription_manager] Reolink host 192.168.1.100 got response status: 400. Payload: {<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:xmime="http://tempuri.org/xmime.xsd" xmlns:xmime5="http://www.w3.org/2005/05/xmlmime" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:ns1="http://www.onvif.org/ver10/actionengine/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:ns10="http://www.onvif.org/ver10/events/wsdl/PullPointBinding" xmlns:ns11="http://www.onvif.org/ver10/events/wsdl/CreatePullPointBinding" xmlns:ns12="http://www.onvif.org/ver10/events/wsdl/PausableSubscriptionManagerBinding" xmlns:ns13="http://www.onvif.org/ver10/network/wsdl/RemoteDiscoveryBinding" xmlns:ns14="http://www.onvif.org/ver10/network/wsdl/DiscoveryLookupBinding" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:ns3="http://www.onvif.org/ver20/analytics/wsdl/RuleEngineBinding" xmlns:ns4="http://www.onvif.org/ver20/analytics/wsdl/AnalyticsEngineBinding" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:ns5="http://www.onvif.org/ver10/events/wsdl/PullPointSubscriptionBinding" xmlns:ns6="http://www.onvif.org/ver10/events/wsdl/EventBinding" xmlns:ns7="http://www.onvif.org/ver10/events/wsdl/SubscriptionManagerBinding" xmlns:ns8="http://www.onvif.org/ver10/events/wsdl/NotificationProducerBinding" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:ns9="http://www.onvif.org/ver10/events/wsdl/NotificationConsumerBinding" xmlns:tad="http://www.onvif.org/ver10/analyticsdevice/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tls="http://www.onvif.org/ver10/display/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trc="http://www.onvif.org/ver10/recording/wsdl" xmlns:trp="http://www.onvif.org/ver10/replay/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:trv="http://www.onvif.org/ver10/receiver/wsdl" xmlns:tse="http://www.onvif.org/ver10/search/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"><SOAP-ENV:Header></SOAP-ENV:Header><SOAP-ENV:Body><SOAP-ENV:Fault><SOAP-ENV:Code><SOAP-ENV:Value>SOAP-ENV:Sender</SOAP-ENV:Value></SOAP-ENV:Code><SOAP-ENV:Reason><SOAP-ENV:Text xml:lang="en"/></SOAP-ENV:Reason></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
}
2020-12-21 17:33:47 DEBUG (MainThread) [custom_components.reolink_dev] Finished fetching reolink data in 0.291 seconds
2020-12-21 17:34:05 DEBUG (MainThread) [reolink.subscription_manager] Reolink host 192.168.1.100 got response status: 400. Payload: {<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:xmime="http://tempuri.org/xmime.xsd" xmlns:xmime5="http://www.w3.org/2005/05/xmlmime" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:ns1="http://www.onvif.org/ver10/actionengine/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:ns10="http://www.onvif.org/ver10/events/wsdl/PullPointBinding" xmlns:ns11="http://www.onvif.org/ver10/events/wsdl/CreatePullPointBinding" xmlns:ns12="http://www.onvif.org/ver10/events/wsdl/PausableSubscriptionManagerBinding" xmlns:ns13="http://www.onvif.org/ver10/network/wsdl/RemoteDiscoveryBinding" xmlns:ns14="http://www.onvif.org/ver10/network/wsdl/DiscoveryLookupBinding" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:ns3="http://www.onvif.org/ver20/analytics/wsdl/RuleEngineBinding" xmlns:ns4="http://www.onvif.org/ver20/analytics/wsdl/AnalyticsEngineBinding" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:ns5="http://www.onvif.org/ver10/events/wsdl/PullPointSubscriptionBinding" xmlns:ns6="http://www.onvif.org/ver10/events/wsdl/EventBinding" xmlns:ns7="http://www.onvif.org/ver10/events/wsdl/SubscriptionManagerBinding" xmlns:ns8="http://www.onvif.org/ver10/events/wsdl/NotificationProducerBinding" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:ns9="http://www.onvif.org/ver10/events/wsdl/NotificationConsumerBinding" xmlns:tad="http://www.onvif.org/ver10/analyticsdevice/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tls="http://www.onvif.org/ver10/display/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trc="http://www.onvif.org/ver10/recording/wsdl" xmlns:trp="http://www.onvif.org/ver10/replay/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:trv="http://www.onvif.org/ver10/receiver/wsdl" xmlns:tse="http://www.onvif.org/ver10/search/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"><SOAP-ENV:Header><wsa5:To SOAP-ENV:mustUnderstand="1">None</wsa5:To><wsa5:Action SOAP-ENV:mustUnderstand="1">http://docs.oasis-open.org/wsn/bw-2/SubscriptionManager/RenewRequest</wsa5:Action></SOAP-ENV:Header><SOAP-ENV:Body><SOAP-ENV:Fault><SOAP-ENV:Code><SOAP-ENV:Value>SOAP-ENV:Sender</SOAP-ENV:Value></SOAP-ENV:Code><SOAP-ENV:Reason><SOAP-ENV:Text xml:lang="en"/></SOAP-ENV:Reason></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
}

It might be related to a device mixup Adding the first camera, the device id is properly picked up from the camera name then I proceeded to add more cameras

Notice what happens The last camera that I added was Tempo image

So let's dive into the details of Driveway camera image The entities are all correct, they properly reflect the camera name in the entity names However the device id is wrong

notice how clicking on it opens up Tempo device and not Driveway device image

This is the case with all the cameras so it looks like the last camera device id is overwriting all camera device ids, perhaps why subscription is failing (just a guess)

Before adding multiple cameras, I had no issues with subscription errors.

Hope this helps

fwestenberg commented 3 years ago

From what version did you notice this issue? Can you remember?

badabing2005 commented 3 years ago

From what version did you notice this issue? Can you remember?

0.9

kaaspad commented 3 years ago

I'm having the exact same issue on 0.9 and 0.10 (0.8 had more issues where the naming was wrong) - so actually the same two issues which I don't know if they are related to each other:

  1. I have 6 cameras, but similarly to @badabing2005 they all have the correct entities, but each camera (channel) added overrides the device of the previous one, which means by me all the devices are called "Porch"
  2. Getting log flooded with: ERROR (MainThread) [custom_components.reolink_dev.base] Host 192.xxx.xxx.xxx error renewing the Reolink subscription
kaaspad commented 3 years ago

any updates here? still getting a flood of messages as well as the issue with multiple devices with same name on NVR? no pressure though.... :-)

RikyUnreal commented 3 years ago

I have the same error renewing the Reolink subscription issue; no pressure, just for your information. My equipment: NRV RLN8-410-E

fwestenberg commented 3 years ago

I renamed this issue a bit. To be clear for this issue:

If the initial subscription gives http 400: please post in issue #115

RikyUnreal commented 3 years ago

Just updated to 0.12. Same issue like here: https://github.com/fwestenberg/reolink_dev/issues/130#issue-786330308 My equipment: NRV RLN8-410-E

RikyUnreal commented 3 years ago

Just updated to 0.13 Same issue

(Logger: custom_components.reolink_dev.base
Source: custom_components/reolink_dev/base.py:241)

My equipment: NRV RLN8-410-E

fwestenberg commented 3 years ago

Did the integration subscribe at all? Or did you get http 400 from the start? If this is the case, the NVR probably has already too many subscriptions. This should be solved after +- 15 minutes.

RikyUnreal commented 3 years ago

Where I should get the 400 error? Now I simply check the HA log and see "message first occurred at 12:02:57 PM and shows up 11 times".... and counting

fwestenberg commented 3 years ago

Just wait 15min and go to the integration. There is a option 'reload' in the menu. After that, check the log. I think this should fix it.

RikyUnreal commented 3 years ago

Ok waiting and I'll give you an update. I suppose I have to reload all cameras right?

cob94440 commented 3 years ago

Just did the reload and still same error.

cob94440 commented 3 years ago

Logger: custom_components.reolink_dev.base Source: custom_components/reolink_dev/base.py:241 Integration: Reolink IP camera (documentation, issues) First occurred: 12:25:14 (8 occurrences) Last logged: 12:26:16

Host 10.0.0.36 error renewing the Reolink subscription

RikyUnreal commented 3 years ago

Waited, reloaded all cameras, but same issue.

fwestenberg commented 3 years ago

Post the log please! From the moment you reloaded the integration.

RikyUnreal commented 3 years ago
Logger: custom_components.reolink_dev.base
Source: custom_components/reolink_dev/base.py:241
Integration: Reolink IP camera (documentation, issues)
First occurred: 12:28:57 PM (29 occurrences)
Last logged: 12:35:23 PM

FULL LOG

2021-01-17 12:38:03 ERROR (MainThread) [custom_components.reolink_dev.base] Host 192.168.178.51 error renewing the Reolink subscription
2021-01-17 12:38:03 DEBUG (MainThread) [reolink.subscription_manager] Reolink host 192.168.178.51 got response status: 400. Payload: {<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:xmime="http://tempuri.org/xmime.xsd" xmlns:xmime5="http://www.w3.org/2005/05/xmlmime" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:ns1="http://www.onvif.org/ver10/actionengine/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:ns10="http://www.onvif.org/ver10/events/wsdl/PullPointBinding" xmlns:ns11="http://www.onvif.org/ver10/events/wsdl/CreatePullPointBinding" xmlns:ns12="http://www.onvif.org/ver10/events/wsdl/PausableSubscriptionManagerBinding" xmlns:ns13="http://www.onvif.org/ver10/network/wsdl/RemoteDiscoveryBinding" xmlns:ns14="http://www.onvif.org/ver10/network/wsdl/DiscoveryLookupBinding" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:ns3="http://www.onvif.org/ver20/analytics/wsdl/RuleEngineBinding" xmlns:ns4="http://www.onvif.org/ver20/analytics/wsdl/AnalyticsEngineBinding" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:ns5="http://www.onvif.org/ver10/events/wsdl/PullPointSubscriptionBinding" xmlns:ns6="http://www.onvif.org/ver10/events/wsdl/EventBinding" xmlns:ns7="http://www.onvif.org/ver10/events/wsdl/SubscriptionManagerBinding" xmlns:ns8="http://www.onvif.org/ver10/events/wsdl/NotificationProducerBinding" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:ns9="http://www.onvif.org/ver10/events/wsdl/NotificationConsumerBinding" xmlns:tad="http://www.onvif.org/ver10/analyticsdevice/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tls="http://www.onvif.org/ver10/display/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trc="http://www.onvif.org/ver10/recording/wsdl" xmlns:trp="http://www.onvif.org/ver10/replay/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:trv="http://www.onvif.org/ver10/receiver/wsdl" xmlns:tse="http://www.onvif.org/ver10/search/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"><SOAP-ENV:Header></SOAP-ENV:Header><SOAP-ENV:Body><SOAP-ENV:Fault><SOAP-ENV:Code><SOAP-ENV:Value>SOAP-ENV:Sender</SOAP-ENV:Value></SOAP-ENV:Code><SOAP-ENV:Reason><SOAP-ENV:Text xml:lang="en"/></SOAP-ENV:Reason></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
}
2021-01-17 12:38:03 DEBUG (MainThread) [custom_components.reolink_dev] Finished fetching reolink data in 0.311 seconds

Oh, here is the 400

cob94440 commented 3 years ago

2021-01-17 12:30:19 ERROR (MainThread) [homeassistant.components.scrape.sensor] Unable to retrieve data for hacf_essence_cheroy_inter_SP98_price 2021-01-17 12:30:20 ERROR (MainThread) [custom_components.reolink_dev.base] Host 10.0.0.36 error renewing the Reolink subscription 2021-01-17 12:30:20 ERROR (MainThread) [custom_components.reolink_dev.base] Host 10.0.0.36 error renewing the Reolink subscription 2021-01-17 12:30:24 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.chris_to_papy is taking over 10 seconds 2021-01-17 12:30:43 WARNING (MainThread) [homeassistant.components.sensor] Updating badnest sensor took longer than the scheduled update interval 0:00:30 2021-01-17 12:31:20 ERROR (MainThread) [custom_components.reolink_dev.base] Host 10.0.0.36 error renewing the Reolink subscription 2021-01-17 12:31:21 ERROR (MainThread) [custom_components.reolink_dev.base] Host 10.0.0.36 error renewing the Reolink subscription 2021-01-17 12:31:33 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook b3212d801317713773e8d7748aad49b17d8b7abaf247376e261cfad592dbb647 from 10.0.0.36 2021-01-17 12:31:36 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook b3212d801317713773e8d7748aad49b17d8b7abaf247376e261cfad592dbb647 from 10.0.0.36 2021-01-17 12:31:40 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook b3212d801317713773e8d7748aad49b17d8b7abaf247376e261cfad592dbb647 from 10.0.0.36 2021-01-17 12:31:43 WARNING (MainThread) [homeassistant.components.sensor] Updating badnest sensor took longer than the scheduled update interval 0:00:30 2021-01-17 12:31:45 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook b3212d801317713773e8d7748aad49b17d8b7abaf247376e261cfad592dbb647 from 10.0.0.36 2021-01-17 12:32:01 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook b3212d801317713773e8d7748aad49b17d8b7abaf247376e261cfad592dbb647 from 10.0.0.36 2021-01-17 12:32:04 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook b3212d801317713773e8d7748aad49b17d8b7abaf247376e261cfad592dbb647 from 10.0.0.36 2021-01-17 12:32:09 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook b3212d801317713773e8d7748aad49b17d8b7abaf247376e261cfad592dbb647 from 10.0.0.36 2021-01-17 12:32:12 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook b3212d801317713773e8d7748aad49b17d8b7abaf247376e261cfad592dbb647 from 10.0.0.36 2021-01-17 12:32:16 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook b3212d801317713773e8d7748aad49b17d8b7abaf247376e261cfad592dbb647 from 10.0.0.36 2021-01-17 12:32:20 ERROR (MainThread) [custom_components.reolink_dev.base] Host 10.0.0.36 error renewing the Reolink subscription 2021-01-17 12:32:21 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook b3212d801317713773e8d7748aad49b17d8b7abaf247376e261cfad592dbb647 from 10.0.0.36 2021-01-17 12:32:21 ERROR (MainThread) [custom_components.reolink_dev.base] Host 10.0.0.36 error renewing the Reolink subscription 2021-01-17 12:32:43 WARNING (MainThread) [homeassistant.components.sensor] Updating badnest sensor took longer than the scheduled update interval 0:00:30 2021-01-17 12:33:20 ERROR (MainThread) [custom_components.reolink_dev.base] Host 10.0.0.36 error renewing the Reolink subscription 2021-01-17 12:33:21 ERROR (MainThread) [custom_components.reolink_dev.base] Host 10.0.0.36 error renewing the Reolink subscription 2021-01-17 12:33:43 WARNING (MainThread) [homeassistant.components.sensor] Updating badnest sensor took longer than the scheduled update interval 0:00:30 2021-01-17 12:34:20 ERROR (MainThread) [custom_components.reolink_dev.base] Host 10.0.0.36 error renewing the Reolink subscription 2021-01-17 12:34:21 ERROR (MainThread) [custom_components.reolink_dev.base] Host 10.0.0.36 error renewing the Reolink subscription 2021-01-17 12:35:13 WARNING (MainThread) [homeassistant.components.sensor] Updating badnest sensor took longer than the scheduled update interval 0:00:30 2021-01-17 12:35:19 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.palier_protect_battery_health_state is taking over 10 seconds 2021-01-17 12:35:21 ERROR (MainThread) [custom_components.reolink_dev.base] Host 10.0.0.36 error renewing the Reolink subscription 2021-01-17 12:36:05 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.kitchen_protect_battery_health_state is taking over 10 seconds 2021-01-17 12:36:13 WARNING (MainThread) [homeassistant.components.sensor] Updating badnest sensor took longer than the scheduled update interval 0:00:30 2021-01-17 12:36:21 ERROR (MainThread) [custom_components.reolink_dev.base] Host 10.0.0.36 error renewing the Reolink subscription 2021-01-17 12:37:21 ERROR (MainThread) [custom_components.reolink_dev.base] Host 10.0.0.36 error renewing the Reolink subscription

fwestenberg commented 3 years ago

in the logging config, you probably miss the item: reolink: debug

But it looks like the NVS is still calling the old webhook, so this subscription is still alive. A reboot of the NVR will fix this I guess. The integration should then reconnect by itself within a minute.

RikyUnreal commented 3 years ago

My configuration.yaml

logger:
  logs:
    custom_components.reolink_dev: debug
    reolink: debug

Now turning OFF the NVR and rebooting.

cob94440 commented 3 years ago

same after rebooting nvr

RikyUnreal commented 3 years ago

After rebooting the NVR, I also removed all cameras. Now I added only one camera, and it seems I get no errors. Waiting a bit before adding the other cameras

RikyUnreal commented 3 years ago

Added also the 2nd and 3rd cameras, and still no renewing no errors. 👍 Waiting a bit before adding the last one.

cob94440 commented 3 years ago

i deleted camerafrom ha. rebooted nvr. rebooted ha added camera 1 ok camera 2 still no message. but ftp shows on for camera 2 which is not true idem camera 3 camera 4 subscription error is back

Logger: custom_components.reolink_dev.base Source: custom_components/reolink_dev/base.py:241 Integration: Reolink IP camera (documentation, issues) First occurred: 14:08:56 (1 occurrences) Last logged: 14:08:56

Host 10.0.0.36 error renewing the Reolink subscription

motion then unavailable for all camera

Ftp seems on for camera 2,3 and 4 unable to disable

RikyUnreal commented 3 years ago

Same here. Added camera 4 and get the error back. All motion sensors switched from always clear (even if I trigger the camera - other issue) to unavailable

cob94440 commented 3 years ago

Same here. Added camera 4 and get the error back

Do you also have ftp on for camera in ha?

RikyUnreal commented 3 years ago

Do you also have ftp on for camera in ha?

I don't use FTP feature on the NVR so I never tried to activate/deactivate it from HA

cob94440 commented 3 years ago

ok but do it show on for camera 2,3 and 4. I do not use it either

RikyUnreal commented 3 years ago

ok but do it show on for camera 2,3 and 4. I do not use it either

1,2,3,4 FTP switch, all off for me. snapshop

cob94440 commented 3 years ago

Seems like i don't have the latest firmware like you. image

cob94440 commented 3 years ago

Now ftp is ok on latest version. I uncheck on nvr the triggered that record all channels. But still no motion. And still subscription problem with 4 camera

jgthornburgh commented 3 years ago

I'm having the same issue after updating to v.13. All motion binary sensors are unavailable.

RikyUnreal commented 3 years ago

Just updated to 0.14 Some news: I get some errors soon after HA rebooting, but then the log seems stable.

My equipment: NRV RLN8-410-E with 4 cameras installed


  1. First "batch" of errors 400, several times 2021-02-16 18:51:58 ERROR (MainThread) [custom_components.reolink_dev.base] Host 192.168.178.51 error renewing the Reolink subscription 2021-02-16 18:51:58 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event reolink_dev-event-EC71DB1814B3[L]: available=False> 2021-02-16 18:51:58 DEBUG (MainThread) [reolink.subscription_manager] Reolink host 192.168.178.51 got response status: 400. Payload: {<?xml version="1.0" encoding="UTF-8"?>

(Logger: custom_components.reolink_dev.base Source: custom_components/reolink_dev/base.py:245)

  1. Then 200 2021-02-16 18:51:59 ERROR (MainThread) [custom_components.reolink_dev.base] Host 192.168.178.51 error renewing the Reolink subscription 2021-02-16 18:51:59 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event reolink_dev-event-EC71DB1814B3[L]: available=False> 2021-02-16 18:51:59 DEBUG (MainThread) [reolink.subscription_manager] Reolink host 192.168.178.51 got response status: 200. Payload: {<?xml version="1.0" encoding="UTF-8"?>

  2. Then this and no more subscription errors in the main log 2021-02-16 18:53:58 DEBUG (MainThread) [reolink.subscription_manager] Host 192.168.178.51 should renew in: 781 seconds... 2021-02-16 18:53:58 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event reolink_dev-event-EC71DB1814B3[L]: available=True> 2021-02-16 18:53:58 DEBUG (MainThread) [reolink.subscription_manager] Host 192.168.178.51 should renew in: 720 seconds... 2021-02-16 18:53:58 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event reolink_dev-event-EC71DB1814B3[L]: available=True> 2021-02-16 18:53:58 DEBUG (MainThread) [reolink.subscription_manager] Host 192.168.178.51 should renew in: 781 seconds... 2021-02-16 18:53:58 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event reolink_dev-event-EC71DB1814B3[L]: available=True> 2021-02-16 18:53:58 DEBUG (MainThread) [custom_components.reolink_dev] Finished fetching reolink data in 0.371 seconds 2021-02-16 18:53:58 DEBUG (MainThread) [custom_components.reolink_dev] Finished fetching reolink data in 0.391 seconds 2021-02-16 18:53:58 DEBUG (MainThread) [custom_components.reolink_dev] Finished fetching reolink data in 0.843 seconds 2021-02-16 18:53:58 DEBUG (MainThread) [homeassistant.components.http.auth] Authenticated 192.168.178.122 for /api/error/all using bearer token 2021-02-16 18:53:58 DEBUG (MainThread) [homeassistant.components.http.view] Serving /api/error/all to 192.168.178.122 (auth: True) 2021-02-16 18:53:59 DEBUG (MainThread) [reolink.subscription_manager] Host 192.168.178.51 should renew in: 780 seconds... 2021-02-16 18:53:59 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event reolink_dev-event-EC71DB1814B3[L]: available=True>

fwestenberg commented 3 years ago

Seems fine, right? How many cams are attached? Or don't you have a NVR?

RikyUnreal commented 3 years ago

Seems fine, right? How many cams are attached? Or don't you have a NVR?

Yes NVR and 4 cameras. The log this morning is still clear!

fwestenberg commented 3 years ago

Great to hear, thanks!

gavyb commented 3 years ago

I just thought I would provide an update on this error. My log is full of these (every minute) but the cameras appear to be working well within HA. It would be nice to clean up the log, so any advice/comment on the error?

gavyb commented 3 years ago

@fwestenberg - can you provide an update on the logging issue?

fwestenberg commented 3 years ago

Hi @gavyb you could just disable the logging for now. I'm still waiting on an update from Reolink.

Cliff-R-K commented 3 years ago

I have had this problem for a long time, how do I disable logging for the reolink component ?

FabioEight commented 3 years ago

Same issue here, just a E1 Zoom configured.

benek984 commented 3 years ago

Hello, any progress on this issue? I have NVR RLN16-410 setup with 2 x RLC-810A and 2 x RLC-820A. After adding to HA either stream or detection sensors unavailable. Happy to provide the logs if necessary.

cpainchaud commented 3 years ago

@benek984 @FabioEight , create your own support ticket with all required informations please.

kaaspad commented 3 years ago

@cpainchaud Hi, just wanted to know why this is closed? This has been a recurring issue for anyone with cameras connected via Reolink's NVR - the issue mentioned by the OP is still there - never changed, do you want each person with this issue to create a support ticket with the required information? I think they will all be duplicates of the OP, from December 2020. I personally appreciate all the amazing work you guys are doing on this - the component really works great to all of you guys hard work, I'm just trying to understand the method of how you would like this recurring issue to be reported. Thanks

cpainchaud commented 3 years ago

well no I was suggesting that previous 2 comments didnt seem to be related to this issue. Concerning this issue in particular it feels like Reolink is not going to issue a fix, so the question is : should we keep this ticket open forever?

kaaspad commented 3 years ago

sorry, didn't know it was a reolink issue - its weird, it doesn't seem to happen on stand alone cameras but just on NVR's - and it seems to be just a logging issue, I'm not really that knowledgable as to the cause but since I'm in the same boat with this NVR, I'd be happy to provide any logs or info that is needed. Thanks and yes you are right the last two comments were unrelated to the OP, but the original problem still exists

cpainchaud commented 3 years ago

well then may be I am not getting what the purpose of this Issue is : several people are talking about different problems. What is the one you are currently talking about?

benek984 commented 3 years ago

Is that a problem with Reolink NVR firmware or Reolink HA integration? If firmware how can we help Reolink to solve it for us? Also if that is issue with HA integration what can be done about it?