mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-09-19 20:24:32 +02:00
add more egnyte failure logging
This commit is contained in:
@@ -65,7 +65,18 @@ def _request_with_retries(
|
|||||||
timeout=timeout,
|
timeout=timeout,
|
||||||
stream=stream,
|
stream=stream,
|
||||||
)
|
)
|
||||||
response.raise_for_status()
|
try:
|
||||||
|
response.raise_for_status()
|
||||||
|
except requests.exceptions.HTTPError as e:
|
||||||
|
if e.response.status_code != 403:
|
||||||
|
logger.exception(
|
||||||
|
f"Failed to call Egnyte API.\n"
|
||||||
|
f"URL: {url}\n"
|
||||||
|
f"Headers: {headers}\n"
|
||||||
|
f"Data: {data}\n"
|
||||||
|
f"Params: {params}"
|
||||||
|
)
|
||||||
|
raise e
|
||||||
return response
|
return response
|
||||||
|
|
||||||
return _make_request()
|
return _make_request()
|
||||||
|
Reference in New Issue
Block a user