Error parsing json to LUA table: (invalid json string)
Posted: Wednesday 15 November 2023 14:47
platform: raspberry pi
OS: Raspbian GNU/Linux 11 (bullseye)
Domoticz:
Version: 2023.2
Build Hash: 19efd03
Compile Date: 2023-07-21 17:23:44
dzVents Version: 3.1.8
Python Version: 3.9.2 (default, Mar 12 2021, 04:06:34) [GCC 10.2.1 20210110]
Hi,
I have a webhook that posts meter readings to a server on the internet (energyid.eu).
On the callback I always get the following error twice in the logs:
Error: dzVents: Error: (3.1.8) Gasmeter and watermeter EnergyId webhook: Error parsing json to LUA table: (invalid json string) "OK"
Why do I get this error?
I know the response is not JSON. Hence the commented out code.
I do want to check the HTTPResponse statuscode.
OS: Raspbian GNU/Linux 11 (bullseye)
Domoticz:
Version: 2023.2
Build Hash: 19efd03
Compile Date: 2023-07-21 17:23:44
dzVents Version: 3.1.8
Python Version: 3.9.2 (default, Mar 12 2021, 04:06:34) [GCC 10.2.1 20210110]
Hi,
I have a webhook that posts meter readings to a server on the internet (energyid.eu).
On the callback I always get the following error twice in the logs:
Error: dzVents: Error: (3.1.8) Gasmeter and watermeter EnergyId webhook: Error parsing json to LUA table: (invalid json string) "OK"
Why do I get this error?
I know the response is not JSON. Hence the commented out code.
I do want to check the HTTPResponse statuscode.