Skip to content

Commit 7c2b899

Browse files
committed
fix(httpx): fix httpx proxy
1 parent 6aa1688 commit 7c2b899

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "uipath"
3-
version = "2.0.77"
3+
version = "2.0.78"
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.10"

src/uipath/utils/_endpoints_manager.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
import httpx
77

8+
from uipath._utils._ssl_context import get_httpx_client_kwargs
9+
810
loggger = logging.getLogger(__name__)
911

1012

@@ -56,7 +58,8 @@ def is_agenthub_available(cls) -> bool:
5658
def _check_agenthub(cls) -> bool:
5759
"""Perform the actual check for AgentHub capabilities."""
5860
try:
59-
with httpx.Client() as http_client:
61+
client_kwargs = get_httpx_client_kwargs()
62+
with httpx.Client(**client_kwargs) as http_client:
6063
base_url = os.getenv("UIPATH_URL", "")
6164
capabilities_url = f"{base_url.rstrip('/')}/{UiPathEndpoints.AH_CAPABILITIES_ENDPOINT.value}"
6265
loggger.debug(f"Checking AgentHub capabilities at {capabilities_url}")

0 commit comments

Comments
 (0)