extend timeout for requests.get and requests.post (#848)

This commit is contained in:
QianZhu
2024-01-22 20:31:39 -08:00
committed by GitHub
parent 4c303ba293
commit b4d451ed21

View File

@@ -109,7 +109,7 @@ class RestfulLanceDBClient:
urljoin(self.url, uri),
params=params,
headers=self.headers,
timeout=(5.0, 30.0),
timeout=(10.0, 300.0),
) as resp:
self._check_status(resp)
return resp.json()
@@ -151,7 +151,7 @@ class RestfulLanceDBClient:
urljoin(self.url, uri),
headers=headers,
params=params,
timeout=(5.0, 30.0),
timeout=(10.0, 300.0),
**req_kwargs,
) as resp:
self._check_status(resp)