kbr / fritzconnection

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

FB7590 #7.12 #67

Closed JobstHensiek closed 3 years ago

JobstHensiek commented 3 years ago

FritzConnection on FB7590 / OS:7.12 produces the following errors. However on FB7490 & FB7390 it runs fine.

fritzconnection v1.3.4 -s -i 192.168.178.x

Traceback (most recent call last): File "/usr/local/bin/fritzconnection", line 8, in sys.exit(main()) File "/usr/local/lib/python3.8/dist-packages/fritzconnection/cli/fritzinspection.py", line 149, in main run_inspector(inspector, args) File "/usr/local/lib/python3.8/dist-packages/fritzconnection/cli/fritzinspection.py", line 126, in run_inspector print_header(inspector.fc) File "/usr/local/lib/python3.8/dist-packages/fritzconnection/cli/utils.py", line 24, in print_header print(instance) File "/usr/local/lib/python3.8/dist-packages/fritzconnection/core/fritzconnection.py", line 132, in repr return f"{self.modelname} at {self.soaper.address}\n" \ File "/usr/local/lib/python3.8/dist-packages/fritzconnection/core/fritzconnection.py", line 147, in modelname return self.device_manager.modelname File "/usr/local/lib/python3.8/dist-packages/fritzconnection/core/devices.py", line 39, in modelname return self.descriptions[0].device_model_name IndexError: list index out of range

kbr commented 3 years ago

That is something that should not happen and indicates, that the tr64 description file provided by the FB does not hold the model information. Would you mind to update to FritzOS 7.20?

JobstHensiek commented 3 years ago

I will do so shortly & let you. Thanks

Vom iPhone Xs gesendet

Am 22.08.2020 um 15:42 schrieb kbr notifications@github.com:

 That is something that should not happen and indicates, that the tr64 description file provided by the FB does not hold the model information. Would you mind to update to FritzOS 7.20?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

Jakeler commented 3 years ago

I see exactly the same problem, on FB 7490 with OS 7.21.

kbr commented 3 years ago

I can not reproduce this with OS 7.21 However this error indicates, that reading any device informations failed. Is this a permanent error or just a kind of network outage?

Jakeler commented 3 years ago

Okay my mistake, "access for applications" and "statusinformation using UPnP" in the networksettings was disabled. It works fine now, after changing these settings through the web interface. Thanks for the useful tool! Would it be possible to catch connection problems earlier and throw a more meaningful error for such cases? Also maybe a note in Docs » Installation / Introduction?

kbr commented 3 years ago

@Jakeler : Thanks, good idea. I've put a note in Docs >> Introduction.

kbr commented 3 years ago

As it's now in the documentation I close this issue.