Skip to content

Commit 05c7e51

Browse files
authored
fix: catch more auth errors (#597)
Catch some databricks client auth errors that were being missed.
1 parent 150d74b commit 05c7e51

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.2.16
2+
3+
* **Fix: Catch databricks client auth errors that were being missed**
4+
15
## 1.2.15
26

37
* **Fix: Filter out fields that aren't part of our Page subclass data model. This guards against API changes that are potentially nonbreaking.**

unstructured_ingest/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.2.15" # pragma: no cover
1+
__version__ = "1.2.16" # pragma: no cover

unstructured_ingest/processes/connectors/databricks/volumes.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ def wrap_error(self, e: Exception) -> Exception:
7676
if isinstance(e, ValueError):
7777
error_message = e.args[0]
7878
message_split = error_message.split(":")
79-
if message_split[0].endswith("auth"):
79+
if (message_split[0].endswith("auth")) or (
80+
"Client authentication failed" in error_message
81+
):
8082
return UserAuthError(e)
8183
if isinstance(e, DatabricksError):
8284
reverse_mapping = {v: k for k, v in STATUS_CODE_MAPPING.items()}

0 commit comments

Comments
 (0)