소스 검색

fix: json parse err when http node send request (#11001)

litterGuy 5 달 전
부모
커밋
ae3a2cb272
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      api/core/workflow/nodes/http_request/executor.py

+ 1 - 1
api/core/workflow/nodes/http_request/executor.py

@@ -108,7 +108,7 @@ class Executor:
                     self.content = self.variable_pool.convert_template(data[0].value).text
                 case "json":
                     json_string = self.variable_pool.convert_template(data[0].value).text
-                    json_object = json.loads(json_string)
+                    json_object = json.loads(json_string, strict=False)
                     self.json = json_object
                     # self.json = self._parse_object_contains_variables(json_object)
                 case "binary":