Univention Bugzilla – Bug 57156
OX connector should handle listener files with broken JSON
Last modified: 2024-03-18 11:49:48 CET
An error like this is repeated indefinitely: ----------------------------------------------------------------------- 2024-03-16 02:44:41 ERROR Fatal error: The following JSON file is broken: /var/lib/univention-appcenter/listener/ox-connector/2024-03-14-09-14-32-500329.json Traceback (most recent call last): File "/usr/share/univention-appcenter-listener-converter", line 168, in find_and_convert_files dumped = json.load(open(filename)) File "/usr/lib/python3.7/json/__init__.py", line 296, in load parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw) File "/usr/lib/python3.7/json/__init__.py", line 348, in loads return _default_decoder.decode(s) File "/usr/lib/python3.7/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python3.7/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) ----------------------------------------------------------------------- A broken file cannot be used. The ox-connector should recover from this problem. It should delete or rename the file to allow later debugging.