Skip to content

Surface HTTP error body + add -v to diagnose#8

Merged
pdb0102 merged 1 commit into
mainfrom
feature/diagnose-error-detail
Jun 23, 2026
Merged

Surface HTTP error body + add -v to diagnose#8
pdb0102 merged 1 commit into
mainfrom
feature/diagnose-error-detail

Conversation

@pdb0102

@pdb0102 pdb0102 commented Jun 23, 2026

Copy link
Copy Markdown
Owner

The transport discarded non-2xx response bodies, so an operator saw only "HTTP 500" with no detail. Read the body on error and fold a truncated, whitespace-collapsed snippet into the message. Add a DescribeHttpError overload and a DescribeGet helper that returns the resolved request URL.

diagnose now accepts -v: it wires the ConsoleTrace sink and GetCaCaps/ GetCaCert emit a Debug trace carrying the fully-resolved request URL, so an operator can see exactly what was requested.

The transport discarded non-2xx response bodies, so an operator saw only
"HTTP 500" with no detail. Read the body on error and fold a truncated,
whitespace-collapsed snippet into the message. Add a DescribeHttpError
overload and a DescribeGet helper that returns the resolved request URL.

diagnose now accepts -v: it wires the ConsoleTrace sink and GetCaCaps/
GetCaCert emit a Debug trace carrying the fully-resolved request URL, so an
operator can see exactly what was requested.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01P7aFJqu2RbQ6kNjjSmNZD8
@pdb0102
pdb0102 merged commit 9f17a0a into main Jun 23, 2026
1 check passed
@pdb0102
pdb0102 deleted the feature/diagnose-error-detail branch June 23, 2026 22:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant