Describe the bug
I get an error when trying to generate report:
2023-08-16 14:29:28 - ERROR (c_operation.py:323 report) Error saving operation report (basic scenario)
Traceback (most recent call last):
File "/opt/caldera2/caldera/app/objects/c_operation.py", line 315, in report
step_report['output'] = json.loads(results.replace('\\r\\n', '').replace('\\n', ''))
File "/usr/lib/python3.9/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.9/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.9/json/decoder.py", line 353, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Invalid \escape: line 1 column 17620 (char 17619)
To Reproduce
- I don't actually know what exact ability calls an exception, but when I run operation with around 50 abilities, I get an error in generating report.
Expected behavior
Generatiing report without issues
Screenshots
I just get an error in log and nothing in UI.
Desktop (please complete the following information):
- OS: Kali linux
- Browser Edge
- Version Caldera 4.2.0
Additional context
I've found the root of issue. The commit 45727ef in c_operation.py broke the functionality due to removing try..except.. structure from code.
Describe the bug
I get an error when trying to generate report:
To Reproduce
Expected behavior
Generatiing report without issues
Screenshots
I just get an error in log and nothing in UI.
Desktop (please complete the following information):
Additional context
I've found the root of issue. The commit 45727ef in c_operation.py broke the functionality due to removing try..except.. structure from code.