From f0981ae187976282162a2a64f4f7aae0172ebd43 Mon Sep 17 00:00:00 2001 From: vinland100 Date: Tue, 3 Feb 2026 13:21:53 +0800 Subject: [PATCH] fix: Increase HTTP client timeout in the scanner service from 30 to 120 seconds. --- backend/app/services/scanner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/services/scanner.py b/backend/app/services/scanner.py index c8bbc03..3a5791b 100644 --- a/backend/app/services/scanner.py +++ b/backend/app/services/scanner.py @@ -150,7 +150,7 @@ async def gitea_api(url: str, token: str = None) -> Any: headers = {"Content-Type": "application/json"} 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 if t: headers["Authorization"] = f"token {t}"