fix: 504 Gateway Time-out error on /console/api/version endpoint (#23961)
This commit is contained in:
parent
e7a5268fdd
commit
f560116fb2
1 changed files with 1 additions and 1 deletions
|
|
@ -32,7 +32,7 @@ class VersionApi(Resource):
|
||||||
return result
|
return result
|
||||||
|
|
||||||
try:
|
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:
|
except Exception as error:
|
||||||
logging.warning("Check update version error: %s.", str(error))
|
logging.warning("Check update version error: %s.", str(error))
|
||||||
result["version"] = args.get("current_version")
|
result["version"] = args.get("current_version")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue