All Articles
The Messages API Limit Is Now 128MB, but Bedrock Still Stops at 20MB — Splitting Your Preflight Constants by Route
On 10/28 the Messages API maximum request size went from 32MB to 128MB, but only on the first-party API. Here is a small Python preflight checker that keeps per-route limits in one place and judges a base64 image bundle before you send it, with the output I got.
When web fetch fails, a 400 and a 200 point to different places
Does adding web fetch to tools return a 400, or a 200 with an error_code inside the result block? A two-layer triage across org settings, domain rules, and where a URL came from, plus a small Python helper whose branches I checked.
Three Places Python SDK 2.0.0 Breaks Your Code — A Checking Order Built on a Mocked Transport
Upgrading to Python SDK 2.0.0 changes behavior in three places: the temperature argument, the auth header, and double credentials. Here are the outputs I reproduced on a mocked transport, the fix for proxy setups, and the order I check in.
Before upgrading the SDK turns temperature into a 400, I swept my call sites
With API version 2026-10-21, sending temperature, top_p, or top_k returns a 400 even at the default value. Here is how the switch happens through an SDK upgrade, a small scanner for the lines to fix first, and the order I'd fix them in.
Before You Trust "Credit balance is too low": Three Balances That Don't Share a Wallet
Your Max or Team API credits should still be there, yet the API says the balance is too low. Included credits, purchased credits and the monthly spend cap behave as separate things. Here is the order I check them in, plus a small wrapper for unattended scripts.
You Hit Your Limit and Got a 400 — Telling Apart Your Own Spend Limit, the Tier Cap, and Rate Limits
Claude API limit errors come in three kinds, and they differ in status code and in whether waiting helps. A limit you set returns 400, the tier cap returns 429, and so do ordinary rate limits. Code and a decision table.
When claude -p Seems to Ignore Its Task, Check Argument Order Before Blaming the Model
A task passed to claude -p is ignored and the agent starts exploring the repo. One GitHub report says swapping -p and --append-system-prompt changed that. Here is a sentinel script that tests whether your instructions arrived, plus calling patterns that don't depend on order.
Moving Structured Outputs to output_config.format — What to Check Before You Drop the Beta Header
A checklist for moving structured outputs from output_format and the beta header to output_config.format, drawn from the official docs: the Python SDK TypeError, prompt-cache invalidation, schema limits, and the cases where output won't match your schema.
After Sonnet 4.5 Retired: Count Callers From the Usage CSV, Not grep, and Triage the 404s
claude-sonnet-4-5 retired on November 30, 2026. grep only shows what is written in code. Here is a single script that cross-checks model IDs in your code against the Console's Usage CSV, a triage table for calls that now fail with 404 not_found_error, a wrapper that records the caller, and how to get ready for the next deadline (Opus 4.5, January 22, 2027).
The Morning WS Came Back Empty in a Scheduled Task, and I Learned There Were Two Shells
Step 1 of a scheduled task left my workspace variable empty. The cause was a second shell. Here is what the same probe returned in both, and a tool_result guard that turns the silence into an error.
Sending 40 Rows From Make to the Claude API Stops at Row 14 — Avoiding the 429 With One Subtraction
Why a no-code automation that sends spreadsheet rows to the Claude API one by one hits a 429 partway through, and how to fix it. Seven spacing strategies tested on a mock bucket, a formula for the Sleep delay, and settings that stop failed rows from vanishing.
A 429 With retry-after: 120 Makes the Anthropic SDK Try to Wait 120 Seconds
I ran the Anthropic SDK's automatic retries against a mock server in 12 scenarios. Two retries by default, retry-after obeyed with no cap, and spend-limit 429s that no amount of waiting fixes. Code for a retry wrapper with a wait cap and a time budget, plus the logs.