Giter Site home page Giter Site logo

Comments (4)

gbi39 avatar gbi39 commented on May 30, 2024

Hi,

I have a similar problem like ikorbln.

I have installed and setup all stuff like described. When I run checkfritz.py I get:


Could not query DeviceInfo1 with action GetInfo
Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/fritzconnection/core/soaper.py", line 140, in raise_fritzconnection_error
root = etree.fromstring(response.content)
File "/usr/lib/python3.9/xml/etree/ElementTree.py", line 1347, in XML
parser.feed(text)
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 "/usr/local/bin/checkfritz.py", line 91, in
deviceinfo = readout('DeviceInfo1', 'GetInfo', 'NewSerialNumber')
File "/usr/local/bin/checkfritz.py", line 27, in readout
answer_dict = fc.call_action(module, action)
File "/usr/local/lib/python3.9/dist-packages/fritzconnection/core/fritzconnection.py", line 284, in call_action
return self.soaper.execute(service, action_name, arguments)
File "/usr/local/lib/python3.9/dist-packages/fritzconnection/core/soaper.py", line 259, in execute
return handle_response(response)
File "/usr/local/lib/python3.9/dist-packages/fritzconnection/core/soaper.py", line 241, in handle_response
raise_fritzconnection_error(response)
File "/usr/local/lib/python3.9/dist-packages/fritzconnection/core/soaper.py", line 150, in raise_fritzconnection_error
raise FritzConnectionException(msg)
fritzconnection.core.exceptions.FritzConnectionException: Unable to perform operation. 401 Unauthorized (ERR_NONE)401 UnauthorizedERR_NONEWebserver Mon, 04 Apr 2022 08:05:01 GMT

When I do a "fritzconnection -i 192.168.88.1 -S WANDSLInterfaceConfig1" I get:


fritzconnection v1.9.1
FRITZ!Box 7490 at http://192.168.88.1
FRITZ!OS: 7.29

Servicename: WANDSLInterfaceConfig1
Actionnames:
GetInfo
GetStatisticsTotal
X_AVM-DE_GetDSLDiagnoseInfo
X_AVM-DE_GetDSLInfo

I have changed the IP address of the FB in checkfritz.py. TR-064 is activated in the FB, the setting of UPnP doesn't matter. I'm doing this is on a recent Debian Bullseye on amd64.

What's going wrong ?

from fritzbox-monitor.

gbi39 avatar gbi39 commented on May 30, 2024

Hi all,
this is only for the records.
If you get such weird messages/exceptions like the ones I had above, double-check the credentials checkfritz.py uses to login to your FB. Using wrong credentials (perhaps with typos in them) are not handled graciously by checkfritz.py. I'm sorry to say this, no insult. But maybe there is some room for improvement
My checkfritz.py runs, but it also consumes a valuable amount of (cpu/ram) resources, on a Raspi 3B+, running it as a telegraf plugin

from fritzbox-monitor.

blackw1ng avatar blackw1ng commented on May 30, 2024

Aloha, for some reason i missed the ticket - the handling of credentials is rather poor, i agree - shame on me, as well as the Fritzconnection. Lemme see what we can do there.

from fritzbox-monitor.

DanielHani avatar DanielHani commented on May 30, 2024

Hey guys, I figured something out. Even though WANDSLInterfaceConfig1 is offered, it does not work with cable modems.
I fixed this by leaving it out entirely in the checkfritz.py.

For now, it's working and I'm stuck somewhere else. I am going to open a separate issue for that.

from fritzbox-monitor.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.