sincze / Domoticz-Growatt-Webserver-Plugin

16 stars 10 forks source link

Growatt: 'onMessage' failed 'KeyError':'('Data',) #26

Closed Jacobsentertainment closed 1 year ago

Jacobsentertainment commented 1 year ago

Hi all,

Lately I get many errors popping up in domoticz log, 2022-10-24 14:07:43.273 Error: Growatt: 'onMessage' failed 'KeyError':'('Data',)'. 2022-10-24 14:07:43.273 Error: Growatt: Exception traceback: 2022-10-24 14:07:43.273 Error: Growatt: ----> Line 276 in '/home/pi/domoticz/plugins/Domoticz-Growatt-Webserver-Plugin/plugin.py', function onMessage 2022-10-24 14:07:43.273 Error: Growatt: ----> Line 168 in '/home/pi/domoticz/plugins/Domoticz-Growatt-Webserver-Plugin/plugin.py', function onMessage

Also many errors like 2022-10-23 04:40:05.665 Error: Growatt: Google returned a Server Error. 2022-10-23 05:20:05.270 Error: Growatt: Google returned a status: 502

See also the topic on the domoticz forum topic

Any help on this would be appreciated

sincze commented 1 year ago

Mmm a 502 means bad gateway. I assume the endpoint is dead.

Please have a look here: https://github.com/sincze/Domoticz/blob/master/growatt-inverter.php

Jacobsentertainment commented 1 year ago

The endpoint is still working, and there is still some data coming trough. I did check if I have the current version running, that's not the issue. I have no clue where to find a error in such script.

sincze commented 1 year ago

All Seems to be working with this fix if somebody can confirm I can update the plugin: https://github.com/sincze/Domoticz-Growatt-Webserver-Plugin/issues/29#issuecomment-1321133498

sincze commented 1 year ago

Should be fixed in version 1.0.1