more webhook json fixes

This commit is contained in:
wh1te909 2024-07-29 22:08:39 +00:00
parent d611ab0ee2
commit 781282599c
1 changed files with 3 additions and 0 deletions

View File

@ -238,6 +238,9 @@ def _run_url_rest_action(*, url: str, method, body: str, headers: str, instance=
new_headers = find_and_replace_db_values_str(text=headers, instance=instance)
new_url = requote_uri(new_url)
# usually for stderr fields that contain windows file paths, like {{alert.get_result.stderr}}
new_body = new_body.replace("\\", "\\\\")
try:
new_body = json.loads(new_body, strict=False)
except Exception as e: