Skip to content

Commit 8ca4514

Browse files
committed
Add detailed error logging for client credentials authentication
1 parent dbc47df commit 8ca4514

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/uipath/_cli/_auth/_client_credentials.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,19 @@ def authenticate(
106106
"refresh_token": "",
107107
"id_token": "",
108108
}
109+
109110
case 400:
111+
110112
console.error(
111113
"Invalid client credentials or request parameters."
112114
)
115+
try:
116+
error_details = response.json()
117+
console.error(f"DEBUG: Error details: {error_details}")
118+
except:
119+
console.error(f"DEBUG: Raw error response: {response.text}")
113120
return None
121+
114122
case 401:
115123
console.error("Unauthorized: Invalid client credentials.")
116124
return None

0 commit comments

Comments
 (0)