You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Service commands: write a structured error to the --output file on failure #1990
When a @service_command fails (click.ClickException for a 401, 400, not-found, etc., in packages/uipath/src/uipath/_cli/_utils/_service_base.py), nothing is written to --output. The only signal is free text on stderr and exit 1.
Wrappers such as the uip CLI (UiPath/cli#6017) need to tell auth, not-found and validation failures apart for callers that branch on them, and can't do that without parsing stderr text.
Please write a JSON error object to the --output file on failure, e.g. {"error": {"status_code": 404, "code": "not_found", "message": "..."}}.
Activity