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: add explicit default to httpx.timeout (#28836)

Charles Yaoa8491c26ea67
diff --git a/api/controllers/console/version.py b/api/controllers/console/version.py
index 6c5505f42a0..4e3d9d67865 100644
--- a/api/controllers/console/version.py
+++ b/api/controllers/console/version.py
@@ -58,7 +58,7 @@ class VersionApi(Resource):
response = httpx.get(
check_update_url,
params={"current_version": args["current_version"]},
- timeout=httpx.Timeout(connect=3, read=10),
+ timeout=httpx.Timeout(timeout=10.0, connect=3.0),
)
except Exception as error:
logger.warning("Check update version error: %s.", str(error))