fix: Increase HTTP client timeout in the scanner service from 30 to 120 seconds.
Build and Push CodeReview / build (push) Has been cancelled Details

This commit is contained in:
vinland100 2026-02-03 13:21:53 +08:00
parent c43b0f4c09
commit f0981ae187
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ async def gitea_api(url: str, token: str = None) -> Any:
headers = {"Content-Type": "application/json"} headers = {"Content-Type": "application/json"}
t = token or settings.GITEA_TOKEN t = token or settings.GITEA_TOKEN
async with httpx.AsyncClient(timeout=30) as client: async with httpx.AsyncClient(timeout=120) as client:
# First try with token if available # First try with token if available
if t: if t:
headers["Authorization"] = f"token {t}" headers["Authorization"] = f"token {t}"