We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dbc47df commit 4baced8Copy full SHA for 4baced8
1 file changed
src/uipath/utils/_endpoints_manager.py
@@ -63,7 +63,18 @@ def _check_agenthub(cls) -> bool:
63
capabilities_url = f"{base_url.rstrip('/')}/{UiPathEndpoints.AH_CAPABILITIES_ENDPOINT.value}"
64
loggger.debug(f"Checking AgentHub capabilities at {capabilities_url}")
65
response = http_client.get(capabilities_url)
66
- return response.status_code == 200
+
67
+ if response.status_code != 200:
68
+ return False
69
70
+ capabilities = response.json()
71
72
+ # Validate structure and required fields
73
+ if not isinstance(capabilities, dict) or "version" not in capabilities:
74
75
76
+ return True
77
78
except Exception as e:
79
loggger.error(f"Error checking AgentHub capabilities: {e}", exc_info=True)
80
return False
0 commit comments