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: 504 Gateway Time-out error on /console/api/version endpoint (#23961)

xubof560116fb27a
diff --git a/api/controllers/console/version.py b/api/controllers/console/version.py
index 8237ea3cdcc..894785abc80 100644
--- a/api/controllers/console/version.py
+++ b/api/controllers/console/version.py
@@ -32,7 +32,7 @@ class VersionApi(Resource):
return result
try:
- response = requests.get(check_update_url, {"current_version": args.get("current_version")})
+ response = requests.get(check_update_url, {"current_version": args.get("current_version")}, timeout=(3, 10))
except Exception as error:
logging.warning("Check update version error: %s.", str(error))
result["version"] = args.get("current_version")