Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
use repair_json fix json parse error of HTTPRequestNode (#21909)
Ganondorfc9c49200e0d9
diff --git a/api/core/workflow/nodes/http_request/executor.py b/api/core/workflow/nodes/http_request/executor.pyindex b0a14229c5a..8ac1ae8526b 100644--- a/api/core/workflow/nodes/http_request/executor.py+++ b/api/core/workflow/nodes/http_request/executor.py@@ -8,6 +8,7 @@ from typing import Any, Literalfrom urllib.parse import urlencode, urlparseimport httpx+from json_repair import repair_jsonfrom configs import dify_configfrom core.file import file_manager@@ -178,7 +179,8 @@ class Executor:raise RequestBodyError("json body type should have exactly one item")json_string = self.variable_pool.convert_template(data[0].value).texttry:- json_object = json.loads(json_string, strict=False)+ repaired = repair_json(json_string)+ json_object = json.loads(repaired, strict=False)except json.JSONDecodeError as e:raise RequestBodyError(f"Failed to parse JSON: {json_string}") from eself.json = json_object