fix: Increase HTTP client timeout in the scanner service from 30 to 120 seconds.
Build and Push CodeReview / build (push) Has been cancelled
Details
Build and Push CodeReview / build (push) Has been cancelled
Details
This commit is contained in:
parent
c43b0f4c09
commit
f0981ae187
|
|
@ -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}"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue