NetFabricNOC / PyCW

Simple Python CW integration for zabbix
GNU General Public License v3.0
0 stars 0 forks source link

Data passed to script not correct #11

Open LocalOracularBunny opened 2 years ago

LocalOracularBunny commented 2 years ago

Traceback (most recent call last): File "/usr/lib/zabbix/alertscripts/cw.py", line 28, in data = json.loads(null_defs.sani(parseList.payload)) File "/usr/lib/python3.8/json/init.py", line 357, in loads return _default_decoder.decode(s) File "/usr/lib/python3.8/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python3.8/json/decoder.py", line 353, in raw_decode obj, end = self.scan_once(s, idx) json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 1 column 2 (char 1)

Note: this is why i need to write tests lol.

LocalOracularBunny commented 2 years ago

Looks like i just did a dumb while creating the media type message templates. Speaking of I should probably add that info to the readme. retagging as feature req to remind me to do so.