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

401 Unauthorized Error #169

Closed tik9 closed 1 year ago

tik9 commented 1 year ago

I get a 401 Error with: fc = FritzConnection(address=ip,password=boxpw, user='fritz3220');fc.call_action('WANIPConnection', 'GetInfo') The error: fritzconnection.core.exceptions.FritzConnectionException: Unable to perform operation. 401 Unauthorized. Calling fc() without user, password and address results in FRITZ!Box 6591 Cable (kdg) at http://192.168.178.1 FRITZ!OS: 7.29

kbr commented 1 year ago

That is not an issue – it means that you try to do something without the propper permissions. These kind of errors are raised from the router and fritzconnection just forwards this to the user. In this case you have to specify a correct user/password combination.