Increase webhook request timeout from 10 to 60 seconds (#4653)

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Suchintan
2026-02-06 11:10:06 -05:00
committed by GitHub
parent a6af22fa20
commit dca4186659
2 changed files with 4 additions and 4 deletions

View File

@@ -471,7 +471,7 @@ async def _deliver_webhook(
try:
async with httpx.AsyncClient() as client:
response = await client.post(url, content=payload, headers=headers, timeout=httpx.Timeout(10.0))
response = await client.post(url, content=payload, headers=headers, timeout=httpx.Timeout(60.0))
status_code = response.status_code
body_text = response.text or ""
if len(body_text) > RESPONSE_BODY_TRUNCATION_LIMIT:
@@ -479,7 +479,7 @@ async def _deliver_webhook(
else:
response_body = body_text or None
except httpx.TimeoutException:
error = "Request timed out after 10 seconds."
error = "Request timed out after 60 seconds."
LOG.warning("Webhook replay timed out", url=url)
except httpx.NetworkError as exc:
error = f"Could not reach URL: {exc}"