fritzinfluxdb: Issue with VPNUser data in 'wrong' format.
I’m using a Fritz!Box 7520 with Fritz!OS 7.29. I’ve tried with fritzinfluxdb master and next-release (as of the time of writing), both show the same error.
Fritzinfluxdb can connect to the FritzBox:
fritzinfluxdb | 2022-09-16 18:14:26,803 - INFO: Successfully established FritzBox Lua session
fritzinfluxdb | 2022-09-16 18:14:26,804 - ERROR: Initializing connection to InfluxDB failed
fritzinfluxdb exited with code 1
fritzinfluxdb | 2022-09-16 18:14:27,911 - INFO: Starting fritzinfluxdb v1.0.1 (2022-08-22)
fritzinfluxdb | 2022-09-16 18:14:27,939 - INFO: Successfully parsed config
fritzinfluxdb | 2022-09-16 18:14:27,946 - INFO: Connection to InfluxDB v2.4.0 established and bucket is present
fritzinfluxdb | 2022-09-16 18:14:29,471 - INFO: Successfully established FritzBox TR-069 session
fritzinfluxdb | 2022-09-16 18:14:29,853 - INFO: Successfully established FritzBox Lua session
fritzinfluxdb | 2022-09-16 18:14:29,853 - INFO: Successfully connected to FritzBox '192.168.178.1' (fritz.box) Model: FRITZ!Box 7520 (UI) - FW: 7.29
fritzinfluxdb | 2022-09-16 18:14:29,854 - INFO: Starting main loop
But it cannot read any data (REDACTED added by me):
fritzinfluxdb | 2022-09-16 18:14:30,529 - INFO: Requested invalid action 'GetInfo' for service: WANIPConnection:1
fritzinfluxdb | 2022-09-16 18:14:30,529 - INFO: Querying action 'GetInfo' will be disabled
fritzinfluxdb | 2022-09-16 18:14:30,529 - INFO: All actions for service 'WANIPConnection:1' are unavailable. Disabling service.
fritzinfluxdb | 2022-09-16 18:14:41,651 - ERROR: FritzBox metric type '<class 'dict'>' does not match data: <class 'list'>
fritzinfluxdb | 2022-09-16 18:14:41,651 - ERROR: FritzBox metric type '<class 'dict'>' does not match data: <class 'list'>
fritzinfluxdb | 2022-09-16 18:14:41,651 - ERROR: FritzBox metric type '<class 'dict'>' does not match data: <class 'list'>
fritzinfluxdb | 2022-09-16 18:14:41,651 - ERROR: FritzBox metric type '<class 'dict'>' does not match data: <class 'list'>
fritzinfluxdb | 2022-09-16 18:14:41,652 - ERROR: Unable to extract 'None' form '{'pid': 'shareVpn', 'hide': {'faxSet': True, 'shareUsb': True, 'ssoSet': True, 'liveTv': True}, 'time': [], 'data': {'vpnInfo': {'userConnections': [], 'type': 'IPSec Xauth PSK', 'help': {'url': 'https://www.avm.de/service/vpn', 'text': 'www.avm.de/service/vpn'}, 'boxConnections': [], 'server': 'REDACTED.myfritz.net'}}, 'sid': 'REDACTED'}', got '<class 'NoneType'>'
Everything starting from FritzBox metric type '<class 'dict'>' does not match data: <class 'list'>
will repeat in the log indefinitely.
I found the same problem mentioned in #42, but I’m not using a beta firmware and using next-release
didn’t do anything for me, so I’m stumped.
What do I need to do to fix getting data from my Fritz!Box?
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 15 (8 by maintainers)
Commits related to this issue
- fixes issue with 'wrong' VPN user format #51 — committed to bb-Ricardo/fritzinfluxdb by bb-Ricardo 2 years ago
- fixes issue with vpn user data in wrong format #51 — committed to bb-Ricardo/fritzinfluxdb by bb-Ricardo 2 years ago
Hi @bb-Ricardo, indeed, the latest next-release does not show any “metric type ‘<class ‘dict’>’ does not match” messages anymore.