pdreker / fritz_exporter

Prometheus exporter for Fritz!Box home routers
Other
144 stars 32 forks source link

AttributeError: 'NoneType' object has no attribute 'strip' #258

Closed f4b0 closed 6 months ago

f4b0 commented 6 months ago

Hi, when i run the docker container, i get the following error.

Any ideas?

FritzBox: 7560 FritzOS: 7.30

023-12-08 06:26:25,012 INFO fritzexporter.fritzdevice | Connection to 192.168.178.1 successful, reading capabilities Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/local/lib/python3.12/site-packages/fritzexporter/main.py", line 128, in main() File "/usr/local/lib/python3.12/site-packages/fritzexporter/main.py", line 92, in main fritz_device = FritzDevice( ^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/fritzexporter/fritzdevice.py", line 39, in init self.capabilities = FritzCapabilities(self, host_info) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/fritzexporter/fritzcapabilities.py", line 97, in init self.check_present(device) File "/usr/local/lib/python3.12/site-packages/fritzexporter/fritzcapabilities.py", line 122, in check_present self.capabilities[c].checkCapability(device) File "/usr/local/lib/python3.12/site-packages/fritzexporter/fritzcapabilities.py", line 56, in checkCapability device.fc.call_action(svc, action) File "/usr/local/lib/python3.12/site-packages/fritzconnection/core/fritzconnection.py", line 456, in call_action return self.soaper.execute(service, action_name, arguments) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/fritzconnection/core/soaper.py", line 286, in execute return handle_response(response) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/fritzconnection/core/soaper.py", line 268, in handle_response raise_fritzconnection_error(response) File "/usr/local/lib/python3.12/site-packages/fritzconnection/core/soaper.py", line 183, in raise_fritzconnection_error text = node.text.strip() ^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'strip'

Thanks!