| name | clade-debug-bundle |
| description | Collect debug evidence for Anthropic API issues — request IDs, headers,
Use when working with debug-bundle patterns.
error payloads, and reproduction steps for support tickets.
Trigger with "anthropic debug", "claude support ticket", "anthropic request id",
"debug claude api call".
|
| allowed-tools | Read, Grep, Bash(curl:*) |
| version | 1.0.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","anthropic","claude","debugging"] |
| compatibility | Designed for Claude Code |
Anthropic Debug Bundle
Overview
When you need to file a support ticket or debug a persistent issue, collect these items.
Prerequisites
- Anthropic SDK installed
- An API error or issue to debug
- Access to application logs
Instructions
Step 1: Get the Request ID
Every Anthropic API response includes a request-id header. This is the single most important thing for support tickets.
try {
const message = await client.messages.create({ ... });
} catch (err) {
if (err instanceof Anthropic.APIError) {
console.error('Request ID:', err.headers?.['request-id']);
console.error('Status:', err.status);
console.error('Error type:', err.error?.type);
console.error('Message:', err.message);
}
}
Step 2: Log Full Error Details
function logAnthropicError(err: unknown) {
if (err instanceof Anthropic.APIError) {
const bundle = {
: ().(),
: err.?.[],
: err.,
: err.?.,
: err.,
: err.?.[],
: err.?.[],
};
.(, .(bundle, , ));
bundle;
}
.(, err);
}