lolautruche / SurveillanceStationDomoticz

Synology SurveillanceStation plugin for Domoticz
MIT License
4 stars 1 forks source link

onMessage failed 'JSONDecodeError' #2

Open mattx38 opened 4 years ago

mattx38 commented 4 years ago

I have Python 3.7 installed on my Raspbian and the plugin installed in Domoticz.

The log says that : 2020-02-20 18:50:29.128 Error: (SurveillanceStation) 'onMessage' failed 'JSONDecodeError'. 2020-02-20 18:50:29.128 Error: (SurveillanceStation) ----> Line 206 in '/home/pi/domoticz/plugins/SurveillanceStationDomoticz/plugin.py' 2020-02-20 18:50:29.128 Error: (SurveillanceStation) ----> Line 125 in '/home/pi/domoticz/plugins/SurveillanceStationDomoticz/plugin.py' 2020-02-20 18:50:29.128 Error: (SurveillanceStation) ----> Line 348 in '/usr/lib/python3.7/json/__init__.py' 2020-02-20 18:50:29.128 Error: (SurveillanceStation) ----> Line 337 in '/usr/lib/python3.7/json/decoder.py' 2020-02-20 18:50:29.128 Error: (SurveillanceStation) ----> Line 355 in '/usr/lib/python3.7/json/decoder.py'

lolautruche commented 4 years ago

Hello @mattx38

Sorry for the delay... I'm not sure it comes from the Python version, but more from the SurveillanceStation server response. Would you be able to edit plugin.py in order to dump the response to the log?