claude-code - 💡(How to fix) Fix [BUG] Continuously getting API Error: 400 {"error":{"message":"{"message":"context_management: Extra inputs are not permitted"}. Received Model Group=bedrock-sonnet-4.5\nAvailable Model Group Fallbacks=None","type":"None","param":"None","code":"400"}} [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#49548Fetched 2026-04-17 08:38:02
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Timeline (top)
labeled ×4commented ×1

Error Message

Continuously getting API Error: 400 {"error":{"message":"{"message":"context_management: Extra inputs are not permitted"}. Received Model Group=bedrock-sonnet-4.5\nAvailable Model Group Fallbacks=None","type":"None","param":"None","code":"400"}}

Error Messages/Logs

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

Continuously getting API Error: 400 {"error":{"message":"{"message":"context_management: Extra inputs are not permitted"}. Received Model Group=bedrock-sonnet-4.5\nAvailable Model Group Fallbacks=None","type":"None","param":"None","code":"400"}}

This started happening from today

What Should Happen?

I should be able to get correct response for my tasks

Error Messages/Logs

Steps to Reproduce

Just ask some basic task to check the code etc

Claude Model

None

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

Version: 1.115.0 Commit: 41dd792b5e652393e7787322889ed5fdc58bd75b Date: 2026-04-07T22:04:57Z Electron: 39.8.5 ElectronBuildId: 13703022 Chromium: 142.0.7444.265 Node.js: 22.22.1 V8: 14.2.231.22-electron.0 OS: Darwin arm64 24.6.0

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

VS Code integrated terminal

Additional Information

No response

extent analysis

TL;DR

The issue is likely due to an incompatible input being passed to the API, causing a 400 error with an "Extra inputs are not permitted" message, and a workaround may involve reviewing and adjusting the input parameters.

Guidance

  • Review the API request being made to ensure that only permitted inputs are being passed, as the error message suggests that extra inputs are not allowed.
  • Check the API documentation for the correct input parameters and formats to verify that the request is properly formatted.
  • Consider testing the API request with a minimal set of inputs to isolate the issue and identify the specific input causing the error.
  • If possible, try to reproduce the issue with a different model group or fallback to see if the issue is specific to the "bedrock-sonnet-4.5" model group.

Example

No code snippet is provided as the issue does not include specific code details.

Notes

The issue may be related to a recent change in the API or the Claude Code version, as the error started occurring from today. However, without more information about the specific API request being made, it is difficult to provide a more detailed solution.

Recommendation

Apply workaround: Review and adjust the input parameters to ensure compatibility with the API, as the error message suggests that extra inputs are not permitted. This is a reasonable first step to try to resolve the issue before considering other potential solutions.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] Continuously getting API Error: 400 {"error":{"message":"{"message":"context_management: Extra inputs are not permitted"}. Received Model Group=bedrock-sonnet-4.5\nAvailable Model Group Fallbacks=None","type":"None","param":"None","code":"400"}} [1 comments, 2 participants]