From 68901e2642e3df45c6369a7d5b8256d233e7e6ef Mon Sep 17 00:00:00 2001 From: mengyonghao <1533512157@qq.com> Date: Wed, 24 Dec 2025 21:32:38 +0800 Subject: [PATCH] fix(workflow): correct property usage in HTTP request node --- api/app/core/workflow/nodes/http_request/node.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/app/core/workflow/nodes/http_request/node.py b/api/app/core/workflow/nodes/http_request/node.py index 57e79cd3..63da6783 100644 --- a/api/app/core/workflow/nodes/http_request/node.py +++ b/api/app/core/workflow/nodes/http_request/node.py @@ -80,7 +80,7 @@ class HttpRequestNode(BaseNode): self.typed_config.auth.header: api_key } case _: - raise RuntimeError(f"Auth type not supported: {self.typed_config.auth_type}") + raise RuntimeError(f"Auth type not supported: {self.typed_config.auth.auth_type}") def _build_header(self, state: WorkflowState) -> dict[str, str]: """ @@ -142,7 +142,7 @@ class HttpRequestNode(BaseNode): case HttpContentType.RAW: content["content"] = self._render_template(self.typed_config.body.data, state) case _: - raise RuntimeError(f"Content type not supported: {self.typed_config.content_type}") + raise RuntimeError(f"Content type not supported: {self.typed_config.body.content_type}") return content def _get_client_method(self, client: AsyncClient) -> Callable[..., Coroutine[Any, Any, Response]]: