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
fix(http_request): add error handling for invalid URLs (#12082)
-LAN-50b7ec3c73c3
diff --git a/api/core/workflow/nodes/http_request/exc.py b/api/core/workflow/nodes/http_request/exc.pyindex a815f277bec..46613c9e861 100644--- a/api/core/workflow/nodes/http_request/exc.py+++ b/api/core/workflow/nodes/http_request/exc.py@@ -20,3 +20,7 @@ class ResponseSizeError(HttpRequestNodeError):class RequestBodyError(HttpRequestNodeError):"""Raised when the request body is invalid."""+++class InvalidURLError(HttpRequestNodeError):+ """Raised when the URL is invalid."""diff --git a/api/core/workflow/nodes/http_request/executor.py b/api/core/workflow/nodes/http_request/executor.pyindex cdfdc6e6d51..fadd142e359 100644--- a/api/core/workflow/nodes/http_request/executor.py+++ b/api/core/workflow/nodes/http_request/executor.py@@ -23,6 +23,7 @@ from .exc import (FileFetchError,HttpRequestNodeError,InvalidHttpMethodError,+ InvalidURLError,RequestBodyError,ResponseSizeError,)@@ -66,6 +67,12 @@ class Executor:node_data.authorization.config.api_key).text+ # check if node_data.url is a valid URL+ if not node_data.url:+ raise InvalidURLError("url is required")+ if not node_data.url.startswith(("http://", "https://")):+ raise InvalidURLError("url should start with http:// or https://")+self.url: str = node_data.urlself.method = node_data.methodself.auth = node_data.authorization