Skip to content

Commit b2eed6e

Browse files
Merge pull request #1002 from UiPath/fix/increment-runtime-version
chore: increment runtime version
2 parents 0842371 + b1bdb09 commit b2eed6e

File tree

3 files changed

+18
-15
lines changed

3 files changed

+18
-15
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"
3-
version = "2.2.27"
3+
version = "2.2.28"
44
description = "Python SDK and CLI for UiPath Platform, enabling programmatic interaction with automation services, process management, and deployment tools."
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.11"
77
dependencies = [
8-
"uipath-runtime>=0.2.3, <0.3.0",
8+
"uipath-runtime>=0.2.5, <0.3.0",
99
"uipath-core>=0.1.0, <0.2.0",
1010
"click>=8.3.1",
1111
"httpx>=0.28.1",

src/uipath/_cli/_chat/_bridge.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ class SocketIOChatBridge:
2828
def __init__(
2929
self,
3030
websocket_url: str,
31+
websocket_path: str,
3132
conversation_id: str,
3233
exchange_id: str,
3334
headers: dict[str, str],
@@ -43,6 +44,7 @@ def __init__(
4344
auth: Optional authentication data to send during connection
4445
"""
4546
self.websocket_url = websocket_url
47+
self.websocket_path = websocket_path
4648
self.conversation_id = conversation_id
4749
self.exchange_id = exchange_id
4850
self.auth = auth
@@ -85,11 +87,10 @@ async def connect(self, timeout: float = 10.0) -> None:
8587

8688
try:
8789
# Attempt to connect with timeout
88-
logger.info(f"Connecting to WebSocket server: {self.websocket_url}")
89-
9090
await asyncio.wait_for(
9191
self._client.connect(
9292
url=self.websocket_url,
93+
socketio_path=self.websocket_path,
9394
headers=self.headers,
9495
auth=self.auth,
9596
transports=["websocket"],
@@ -260,20 +261,22 @@ def get_chat_bridge(
260261
host = parsed.netloc
261262

262263
# Construct WebSocket URL for CAS
263-
websocket_url = f"wss://{host}/autopilotforeveryone_/websocket_/socket.io?conversationId={context.conversation_id}"
264+
websocket_url = f"wss://{host}?conversationId={context.conversation_id}"
265+
websocket_path = "autopilotforeveryone_/websocket_/socket.io"
264266

265267
# Build headers from context
266268
headers = {
267269
"Authorization": f"Bearer {os.environ.get('UIPATH_ACCESS_TOKEN', '')}",
268-
"X-UiPath-Internal-TenantId": context.tenant_id
270+
"X-UiPath-Internal-TenantId": f"{context.tenant_id}"
269271
or os.environ.get("UIPATH_TENANT_ID", ""),
270-
"X-UiPath-Internal-AccountId": context.org_id
272+
"X-UiPath-Internal-AccountId": f"{context.org_id}"
271273
or os.environ.get("UIPATH_ORGANIZATION_ID", ""),
272274
"X-UiPath-ConversationId": context.conversation_id,
273275
}
274276

275277
return SocketIOChatBridge(
276278
websocket_url=websocket_url,
279+
websocket_path=websocket_path,
277280
conversation_id=context.conversation_id,
278281
exchange_id=context.exchange_id,
279282
headers=headers,

uv.lock

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)