From 1ef33fdced33dce5fa8309641bae4874004d5510 Mon Sep 17 00:00:00 2001 From: Stainless Bot Date: Mon, 13 Nov 2023 18:11:17 +0000 Subject: [PATCH] fix(client): retry if SSLWantReadError occurs in the async client --- src/finch/_base_client.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/finch/_base_client.py b/src/finch/_base_client.py index b2fe2426..3db8b6fa 100644 --- a/src/finch/_base_client.py +++ b/src/finch/_base_client.py @@ -1320,12 +1320,6 @@ async def _request( if retries > 0: return await self._retry_request(options, cast_to, retries, stream=stream, stream_cls=stream_cls) raise APITimeoutError(request=request) from err - except httpx.ReadTimeout as err: - # We explicitly do not retry on ReadTimeout errors as this means - # that the server processing the request has taken 60 seconds - # (our default timeout). This likely indicates that something - # is not working as expected on the server side. - raise except httpx.TimeoutException as err: if retries > 0: return await self._retry_request(options, cast_to, retries, stream=stream, stream_cls=stream_cls)