From 090bcf89ac0b5593174feff3f4ef419b308f88a8 Mon Sep 17 00:00:00 2001 From: wh1te909 <7434746+wh1te909@users.noreply.github.com> Date: Fri, 26 Jul 2024 19:14:53 +0000 Subject: [PATCH] potential fix for webhook failures --- api/tacticalrmm/core/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/tacticalrmm/core/utils.py b/api/tacticalrmm/core/utils.py index b4428991d2..699a092090 100644 --- a/api/tacticalrmm/core/utils.py +++ b/api/tacticalrmm/core/utils.py @@ -237,8 +237,8 @@ def _run_url_rest_action(*, url: str, method, body: str, headers: str, instance= new_body = find_and_replace_db_values_str(text=body, instance=instance) new_headers = find_and_replace_db_values_str(text=headers, instance=instance) new_url = requote_uri(new_url) - new_body = json.loads(new_body) - new_headers = json.loads(new_headers) + new_body = json.loads(new_body, strict=False) + new_headers = json.loads(new_headers, strict=False) if method in ("get", "delete"): return getattr(requests, method)(new_url, headers=new_headers)