kbr / fritzconnection

Python-Tool to communicate with the AVM Fritz!Box by the TR-064 protocol and the AHA-HTTP-Interface
MIT License
303 stars 59 forks source link

Problem with fritzconnection as dependency in Homeassistant #143

Closed Delta1977 closed 2 years ago

Delta1977 commented 2 years ago

as @chemelli74 described in https://github.com/home-assistant/core/issues/65057 he thinks there is a problem in https://github.com/kbr/fritzconnection/blob/master/fritzconnection/lib/fritzhosts.py#L103-L107 with

2022-01-27 15:55:18 DEBUG (SyncWorker_4) [fritzconnection] http://192.168.2.1:49000/upnp/control/hosts 2022-01-27 15:55:18 DEBUG (SyncWorker_4) [fritzconnection] b'<?xml version="1.0" encoding="utf-8"?>48</u:GetGenericHostEntry></s:Body></s:Envelope>' 2022-01-27 15:55:18 DEBUG (SyncWorker_4) [fritzconnection] response status: 200 2022-01-27 15:55:18 DEBUG (SyncWorker_4) [fritzconnection] <?xml version="1.0"?>

192.168.2.31 DHCP 0 A8:BB:50:A5:6C:16 0 wiz-a56c16

</u:GetGenericHostEntryResponse> </s:Body> </s:Envelope> 2022-01-27 15:55:18 DEBUG (SyncWorker_4) [fritzconnection] http://192.168.2.1:49000/upnp/control/hosts 2022-01-27 15:55:18 DEBUG (SyncWorker_4) [fritzconnection] b'<?xml version="1.0" encoding="utf-8"?>49</u:GetGenericHostEntry></s:Body></s:Envelope>' 2022-01-27 15:55:18 DEBUG (SyncWorker_4) [fritzconnection] response status: 500 2022-01-27 15:55:18 DEBUG (SyncWorker_4) [fritzconnection] <?xml version="1.0"?>

s:Client UPnPError 713 SpecifiedArrayIndexInvalid

</s:Fault> </s:Body> </s:Envelope> 2022-01-27 15:55:18 DEBUG (SyncWorker_4) [fritzconnection]

Please have a look

kbr commented 2 years ago

This log-file excerpt looks good: the 500 response is expected and necessary as the break condition for the mentioned for-loop. Also this code has not changed since two years. The reason for HA not starting up must be elsewhere.

kbr commented 2 years ago

closed in HA