-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Milestone
Description
logparser reported an error in my docker container:
[2024-12-26 12:09:50,917] ERROR in logparser.logparser: Traceback (most recent call last):
File "/usr/lib/python3.11/site-packages/logparser/logparser.py", line 467, in run
data = self.handle_logfile(log_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/logparser/logparser.py", line 255, in handle_logfile
self.parse_appended_log(data, appended_log)
File "/usr/lib/python3.11/site-packages/logparser/logparser.py", line 315, in parse_appended_log
self.logger.debug("Parsed data_ from appended_log:\n%s", self.json_dumps(data_))
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/logparser/logparser.py", line 284, in json_dumps
return json.dumps(obj, ensure_ascii=False, indent=4, sort_keys=sort_keys)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/json/__init__.py", line 238, in dumps
**kw).encode(obj)
^^^^^^^^^^^
File "/usr/lib/python3.11/json/encoder.py", line 202, in encode
chunks = list(chunks)
^^^^^^^^^^^^
File "/usr/lib/python3.11/json/encoder.py", line 432, in _iterencode
yield from _iterencode_dict(o, _current_indent_level)
File "/usr/lib/python3.11/json/encoder.py", line 406, in _iterencode_dict
yield from chunks
File "/usr/lib/python3.11/json/encoder.py", line 406, in _iterencode_dict
yield from chunks
File "/usr/lib/python3.11/json/encoder.py", line 439, in _iterencode
o = _default(o)
^^^^^^^^^^^
File "/usr/lib/python3.11/json/encoder.py", line 180, in default
raise TypeError(f'Object of type {o.__class__.__name__} '
TypeError: Object of type JSONDecodeError is not JSON serializable
FYI, my container uses the alpine image.
Malkiz223
Metadata
Metadata
Assignees
Labels
No labels