Closed rmandjes closed 3 years ago
I solved my problem. I had to fill in a username: fh = FritzHosts(address='192.168.178.1', user='xxx', password='xxxx')
This is new with the beta versions.
Yes, AVM has announced changes for the upcoming OS 7.25 here: https://avm.de/service/schnittstellen/
Closed because this is not an issue with the library.
Hi,
I'm trying to get an overview of the mesh configuration. I'm using this script: from fritzconnection.lib.fritzhosts import FritzHosts
fh = FritzHosts(address='192.168.178.1', password='xxxxxx') hosts = fh.get_mesh_topology(raw=True) print(hosts)
But when I run the script a get this error message: Traceback (most recent call last): File "C:\Users\Ron\AppData\Roaming\Python\Python37\site-packages\fritzconnection\core\soaper.py", line 123, in raise_fritzconnection_error root = etree.fromstring(response.content) File "C:\Users\Ron\AppData\Local\Programs\Thonny\lib\xml\etree\ElementTree.py", line 1315, in XML parser.feed(text) File "", line None
xml.etree.ElementTree.ParseError: mismatched tag: line 1, column 156
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "Y:\Test.py", line 4, in
hosts = fh.get_mesh_topology(raw=True)
File "C:\Users\Ron\AppData\Roaming\Python\Python37\site-packages\fritzconnection\lib\fritzhosts.py", line 112, in get_mesh_topology
result = self._action("X_AVM-DE_GetMeshListPath")
File "C:\Users\Ron\AppData\Roaming\Python\Python37\site-packages\fritzconnection\lib\fritzhosts.py", line 32, in _action
return self.fc.call_action(SERVICE, actionname, arguments=arguments, **kwargs)
File "C:\Users\Ron\AppData\Roaming\Python\Python37\site-packages\fritzconnection\core\fritzconnection.py", line 227, in call_action
return self.soaper.execute(service, action_name, arguments)
File "C:\Users\Ron\AppData\Roaming\Python\Python37\site-packages\fritzconnection\core\soaper.py", line 238, in execute
return handle_response(response)
File "C:\Users\Ron\AppData\Roaming\Python\Python37\site-packages\fritzconnection\core\soaper.py", line 222, in handle_response
raise_fritzconnection_error(response)
File "C:\Users\Ron\AppData\Roaming\Python\Python37\site-packages\fritzconnection\core\soaper.py", line 133, in raise_fritzconnection_error
raise FritzConnectionException(msg)
fritzconnection.core.exceptions.FritzConnectionException: Unable to perform operation. 401 Unauthorized (ERR_NONE)401 UnauthorizedERR_NONEWebserver Thu, 25 Feb 2021 13:54:44 GMT
I'm using the latest beta version of the 7590. Could that be causing this error message?