Follow Discord
Sweep 03 Nov 2026 · 22:27Z Build v2.1.318 536 read Stable v2.1.311 Latest v2.1.318 Next v2.1.318 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.317 ·

Gateway guidance now says to pass Bedrock's "Input is too long." error through unchanged

Claude Code's built-in gateway guide says a Bedrock 400 error reading exactly "Input is too long." must reach Claude Code unchanged

You'll notice Improvements
JSON All of v2.1.317
You'll noticeTier: how much it should matter to you
1Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
GatewayArea: what it touches
ImprovementsKind: in v2.1.317,
ImprovementsSection of the release
What

Claude Code includes a guide for people writing a gateway, a server that sits between Claude Code and the model provider. The guide tells gateway authors to clean up (sanitize) error messages before passing them on, with exceptions for messages that must reach Claude Code word for word.

There used to be one exception: a 400 or 413 error saying prompt is too long. There are now two. A 400 error from Amazon Bedrock whose entire message is Input is too long. must also be passed through unchanged.

Why

Claude Code recovers from this Bedrock error by dropping older images from the conversation and then compacting it, which means condensing earlier messages to save space. It recognises the error only by its exact text, so a gateway that rewrites the message stops that recovery from happening.

How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's release notes agreeFixed the Claude apps gateway hiding Amazon Bedrock's "Input is too long." error, which left sessions failing every turn with "upstream…

See this entry in the whole of v2.1.317 →

Feedback