Skip to content

Commit 8dbf063

Browse files
authored
Merge pull request #245 from UiPath/fix/error_code
fix(error_code): add UiPathErrorCode
2 parents c6996db + 9377301 commit 8dbf063

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[project]
22
name = "uipath-langchain"
3-
version = "0.0.147"
3+
version = "0.0.148"
44
description = "UiPath Langchain"
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.10"
77
dependencies = [
8-
"uipath>=2.1.110, <2.2.0",
8+
"uipath>=2.1.123, <2.2.0",
99
"langgraph>=0.5.0, <0.7.0",
1010
"langchain-core>=0.3.34",
1111
"langgraph-checkpoint-sqlite>=2.0.3",

src/uipath_langchain/_utils/_request_mixin.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@
1717
stop_after_attempt,
1818
wait_exponential_jitter,
1919
)
20-
from uipath._cli._runtime._contracts import UiPathErrorCategory, UiPathRuntimeError
20+
from uipath._cli._runtime._contracts import (
21+
UiPathErrorCategory,
22+
UiPathErrorCode,
23+
UiPathRuntimeError,
24+
)
2125
from uipath._utils._ssl_context import get_httpx_client_kwargs
2226

2327
from uipath_langchain._cli._runtime._exception import (
@@ -59,7 +63,7 @@ def _get_access_token(data):
5963
return get_uipath_token_header(settings)
6064
except ValidationError:
6165
raise UiPathRuntimeError(
62-
code="AUTHENTICATION_REQUIRED",
66+
UiPathErrorCode.AUTHENTICATION_REQUIRED,
6367
title="Authorization required",
6468
detail="Authorization required. Please run uipath auth",
6569
category=UiPathErrorCategory.USER,

0 commit comments

Comments
 (0)