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(watercrawl): bound result download timeout (#37495)
落尘fe64c5d4a8a4
diff --git a/api/core/rag/extractor/watercrawl/client.py b/api/core/rag/extractor/watercrawl/client.pyindex d1ce142dbdd..2cd24402535 100644--- a/api/core/rag/extractor/watercrawl/client.py+++ b/api/core/rag/extractor/watercrawl/client.py@@ -217,7 +217,7 @@ class WaterCrawlAPIClient(BaseAPIClient):return event_data["data"]def download_result(self, result_object: dict[str, Any]):- response = httpx.get(result_object["result"], timeout=None)+ response = httpx.get(result_object["result"], timeout=30)try:response.raise_for_status()result_object["result"] = response.json()diff --git a/api/tests/unit_tests/core/rag/extractor/watercrawl/test_watercrawl.py b/api/tests/unit_tests/core/rag/extractor/watercrawl/test_watercrawl.pyindex 95878fc688b..bf5913faa3d 100644--- a/api/tests/unit_tests/core/rag/extractor/watercrawl/test_watercrawl.py+++ b/api/tests/unit_tests/core/rag/extractor/watercrawl/test_watercrawl.py@@ -242,11 +242,18 @@ class TestWaterCrawlAPIClient:client = WaterCrawlAPIClient(api_key="k")response = _response(200, {"markdown": "body"})- monkeypatch.setattr(client_module.httpx, "get", lambda *args, **kwargs: response)+ captured = {}++ def fake_get(*args, **kwargs):+ captured.update(kwargs)+ return response++ monkeypatch.setattr(client_module.httpx, "get", fake_get)result = client.download_result({"result": "https://example.com/result.json"})assert result["result"] == {"markdown": "body"}+ assert captured["timeout"] is not Noneresponse.close.assert_called_once()