API client: report redirects to other hosts; keep plain-text error bodies #66
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "dario/redirect-errors"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A first Azure DevOps setup failed with "403 forbidden: the bot token
lacks permission", while the real cause was the credential: Azure DevOps
redirected the request to its sign-in page on another host, Go followed
the redirect, and the sandbox proxy blocked that host with a plain-text
403, whose text the client dropped because it was not JSON.
repositories) and reports any other as "redirected to <scheme://host/
path>", without the query. Backends can classify it (RedirectKind).
to make the credential (printf, not echo; no "Basic "; the PAT's
organization).
now part of the message (shortened, secrets scrubbed); HTML pages are
still left out.
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com