Skip to content

armgit / dify

Public Imported from GitHub
0

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.

fix: correct misleading retry count in error message

kurokobo0993b94acd5d
diff --git a/api/core/workflow/nodes/http_request/executor.py b/api/core/workflow/nodes/http_request/executor.py
index 1e6e14482b1..d067e387287 100644
--- a/api/core/workflow/nodes/http_request/executor.py
+++ b/api/core/workflow/nodes/http_request/executor.py
@@ -366,7 +366,9 @@ class Executor:
**request_args,
max_retries=self.max_retries,
)
- except (self._http_client.max_retries_exceeded_error, self._http_client.request_error) as e:
+ except self._http_client.max_retries_exceeded_error as e:
+ raise HttpRequestNodeError(f"Reached maximum retries for URL {self.url}") from e
+ except self._http_client.request_error as e:
raise HttpRequestNodeError(str(e)) from e
return response