Wizzard72 / Domoticz-Unifi-Presence

GNU General Public License v3.0
5 stars 7 forks source link

'onHeartbeat' failed 'JSONDecodeError' #6

Closed Tezzlicious closed 2 years ago

Tezzlicious commented 3 years ago

Plugin works, but 1 or 2 times an hour the following error occurs:

2021-01-20 22:21:15.261 Error: (Unifi) 'onHeartbeat' failed 'JSONDecodeError'.
2021-01-20 22:21:15.261 Error: (Unifi) ----> Line 1219 in '/home/pi/domoticz/plugins/Domoticz-Unifi-Presence/plugin.py', function onHeartbeat
2021-01-20 22:21:15.261 Error: (Unifi) ----> Line 430 in '/home/pi/domoticz/plugins/Domoticz-Unifi-Presence/plugin.py', function onHeartbeat
2021-01-20 22:21:15.261 Error: (Unifi) ----> Line 785 in '/home/pi/domoticz/plugins/Domoticz-Unifi-Presence/plugin.py', function request_online_phones
2021-01-20 22:21:15.261 Error: (Unifi) ----> Line 897 in '/usr/lib/python3/dist-packages/requests/models.py', function json
2021-01-20 22:21:15.261 Error: (Unifi) ----> Line 348 in '/usr/lib/python3.7/json/__init__.py', function loads
2021-01-20 22:21:15.261 Error: (Unifi) ----> Line 337 in '/usr/lib/python3.7/json/decoder.py', function decode
2021-01-20 22:21:15.262 Error: (Unifi) ----> Line 355 in '/usr/lib/python3.7/json/decoder.py', function raw_decode

Running on latest beta of domoticz with the latest version of the plugin.

Wizzard72 commented 3 years ago

Check latest plugin version if these errors still there

Tezzlicious commented 3 years ago

Still there:

2021-04-02 13:16:30.337 Error: Python Plugin System: (Unifi) 'onHeartbeat' failed 'JSONDecodeError'.
2021-04-02 13:16:30.337 Error: Python Plugin System: (Unifi) ----> Line 1265 in '/home/pi/domoticz/plugins/Domoticz-Unifi-Presence/plugin.py', function onHeartbeat
2021-04-02 13:16:30.337 Error: Python Plugin System: (Unifi) ----> Line 442 in '/home/pi/domoticz/plugins/Domoticz-Unifi-Presence/plugin.py', function onHeartbeat
2021-04-02 13:16:30.337 Error: Python Plugin System: (Unifi) ----> Line 795 in '/home/pi/domoticz/plugins/Domoticz-Unifi-Presence/plugin.py', function request_online_phones
2021-04-02 13:16:30.338 Error: Python Plugin System: (Unifi) ----> Line 897 in '/usr/lib/python3/dist-packages/requests/models.py', function json
2021-04-02 13:16:30.338 Error: Python Plugin System: (Unifi) ----> Line 348 in '/usr/lib/python3.7/json/__init__.py', function loads
2021-04-02 13:16:30.338 Error: Python Plugin System: (Unifi) ----> Line 337 in '/usr/lib/python3.7/json/decoder.py', function decode
2021-04-02 13:16:30.338 Error: Python Plugin System: (Unifi) ----> Line 355 in '/usr/lib/python3.7/json/decoder.py', function raw_decode
Wizzard72 commented 2 years ago

Can you update the plugin and send me the logfile containing the errors

Tezzlicious commented 2 years ago

I think this has been fixed. I don't see any errors.