From 53dc35f353b97f6205b605cf7d09f0366b1758c2 Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 28 Jun 2024 15:38:35 -0400 Subject: [PATCH] Increasing timeout for remote diarization auth --- src/wordcab_transcribe/services/asr_service.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wordcab_transcribe/services/asr_service.py b/src/wordcab_transcribe/services/asr_service.py index 6524257..16e8026 100644 --- a/src/wordcab_transcribe/services/asr_service.py +++ b/src/wordcab_transcribe/services/asr_service.py @@ -880,7 +880,8 @@ async def remote_diarization( if not settings.debug: headers = {"Content-Type": "application/x-www-form-urlencoded"} auth_url = f"{url}/api/v1/auth" - async with aiohttp.ClientSession() as session: + diarization_timeout = aiohttp.ClientTimeout(total=60) + async with AsyncLocationTrustedRedirectSession(timeout=diarization_timeout) as session: async with session.post( url=auth_url, data={"username": settings.username, "password": settings.password},