[Bug] Anthropic API Error: Authorization header is missing with Bedrock Bearer Token

Status Fixed / completed
Reported on v2.1.94
Maintainer reply None cached
Activity 9 comments · opened Apr 8, 2026 · closed Apr 8, 2026

Bug Description
All of a sudden I've started getting a "Authorization header is missing" error when using a Bedrock Bearer Token. :(

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 2.1.94
  • Feedback ID: 071c0acb-36c7-4048-8d53-4bb9228ec211

Errors

[{"error":"Error: Tool mcp__playwright__browser_resize not found\n    at cn9 (/$bunfs/root/src/entrypoints/cli.js:1963:30437)\n    at u3 (/$bunfs/root/src/entrypoints/cli.js:479:20982)\n    at XA (/$bunfs/root/src/entrypoints/cli.js:479:39522)\n    at a0 (/$bunfs/root/src/entrypoints/cli.js:479:50213)\n    at CxH (/$bunfs/root/src/entrypoints/cli.js:479:86887)\n    at A5H (/$bunfs/root/src/entrypoints/cli.js:479:85851)\n    at z5H (/$bunfs/root/src/entrypoints/cli.js:479:85672)\n    at oMH (/$bunfs/root/src/entrypoints/cli.js:479:82039)\n    at MH (/$bunfs/root/src/entrypoints/cli.js:479:6361)\n    at iV6 (/$bunfs/root/src/entrypoints/cli.js:472:6386)","timestamp":"2026-04-08T00:38:30.681Z"},{"error":"Error: Tool mcp__playwright__browser_navigate not found\n    at cn9 (/$bunfs/root/src/entrypoints/cli.js:1963:30437)\n    at u3 (/$bunfs/root/src/entrypoints/cli.js:479:20982)\n    at XA (/$bunfs/root/src/entrypoints/cli.js:479:39522)\n    at a0 (/$bunfs/root/src/entrypoints/cli.js:479:50213)\n    at CxH (/$bunfs/root/src/entrypoints/cli.js:479:86887)\n    at A5H (/$bunfs/root/src/entrypoints/cli.js:479:85851)\n    at z5H (/$bunfs/root/src/entrypoints/cli.js:479:85672)\n    at oMH (/$bunfs/root/src/entrypoints/cli.js:479:82039)\n    at MH (/$bunfs/root/src/entrypoints/cli.js:479:6361)\n    at iV6 (/$bunfs/root/src/entrypoints/cli.js:472:6386)","timestamp":"2026-04-08T00:38:30.681Z"},{"error":"Error: Tool mcp__playwright__browser_take_screenshot not found\n    at cn9 (/$bunfs/root/src/entrypoints/cli.js:1963:30437)\n    at u3 (/$bunfs/root/src/entrypoints/cli.js:479:20982)\n    at XA (/$bunfs/root/src/entrypoints/cli.js:479:39522)\n    at a0 (/$bunfs/root/src/entrypoints/cli.js:479:50213)\n    at CxH (/$bunfs/root/src/entrypoints/cli.js:479:86887)\n    at A5H (/$bunfs/root/src/entrypoints/cli.js:479:85851)\n    at z5H (/$bunfs/root/src/entrypoints/cli.js:479:85672)\n    at oMH (/$bunfs/root/src/entrypoints/cli.js:479:82039)\n    at MH (/$bunfs/root/src/entrypoints/cli.js:479:6361)\n    at iV6 (/$bunfs/root/src/entrypoints/cli.js:472:6386)","timestamp":"2026-04-08T00:38:30.681Z"},{"error":"Error: Tool mcp__playwright__browser_evaluate not found\n    at cn9 (/$bunfs/root/src/entrypoints/cli.js:1963:30437)\n    at u3 (/$bunfs/root/src/entrypoints/cli.js:479:20982)\n    at XA (/$bunfs/root/src/entrypoints/cli.js:479:39522)\n    at a0 (/$bunfs/root/src/entrypoints/cli.js:479:50213)\n    at CxH (/$bunfs/root/src/entrypoints/cli.js:479:86887)\n    at A5H (/$bunfs/root/src/entrypoints/cli.js:479:85851)\n    at z5H (/$bunfs/root/src/entrypoints/cli.js:479:85672)\n    at oMH (/$bunfs/root/src/entrypoints/cli.js:479:82039)\n    at MH (/$bunfs/root/src/entrypoints/cli.js:479:6361)\n    at iV6 (/$bunfs/root/src/entrypoints/cli.js:472:6386)","timestamp":"2026-04-08T00:38:30.684Z"},{"error":"Error: Tool mcp__playwright__browser_evaluate not found\n    at cn9 (/$bunfs/root/src/entrypoints/cli.js:1963:30437)\n    at u3 (/$bunfs/root/src/entrypoints/cli.js:479:20982)\n    at XA (/$bunfs/root/src/entrypoints/cli.js:479:39522)\n    at a0 (/$bunfs/root/src/entrypoints/cli.js:479:50213)\n    at CxH (/$bunfs/root/src/entrypoints/cli.js:479:86887)\n    at A5H (/$bunfs/root/src/entrypoints/cli.js:479:85851)\n    at z5H (/$bunfs/root/src/entrypoints/cli.js:479:85672)\n    at oMH (/$bunfs/root/src/entrypoints/cli.js:479:82039)\n    at MH (/$bunfs/root/src/entrypoints/cli.js:479:6361)\n    at iV6 (/$bunfs/root/src/entrypoints/cli.js:472:6386)","timestamp":"2026-04-08T00:38:30.684Z"},{"error":"Error: Tool mcp__playwright__browser_evaluate not found\n    at cn9 (/$bunfs/root/src/entrypoints/cli.js:1963:30437)\n    at u3 (/$bunfs/root/src/entrypoints/cli.js:479:20982)\n    at XA (/$bunfs/root/src/entrypoints/cli.js:479:39522)\n    at a0 (/$bunfs/root/src/entrypoints/cli.js:479:50213)\n    at CxH (/$bunfs/root/src/entrypoints/cli.js:479:86887)\n    at A5H (/$bunfs/root/src/entrypoints/cli.js:479:85851)\n    at z5H (/$bunfs/root/src/entrypoints/cli.js:479:85672)\n    at oMH (/$bunfs/root/src/entrypoints/cli.js:479:82039)\n    at MH (/$bunfs/root/src/entrypoints/cli.js:479:6361)\n    at iV6 (/$bunfs/root/src/entrypoints/cli.js:472:6386)","timestamp":"2026-04-08T00:38:30.684Z"},{"error":"Error: Tool mcp__playwright__browser_evaluate not found\n    at cn9 (/$bunfs/root/src/entrypoints/cli.js:1963:30437)\n    at u3 (/$bunfs/root/src/entrypoints/cli.js:479:…

Note: Content was truncated.

View original on GitHub ↗

9 Comments

github-actions[bot] · 4 months ago

Found 2 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/44929
  2. https://github.com/anthropics/claude-code/issues/44910

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

zhileiz · 4 months ago

Also does not work with /setup-bedrock command

Access Token + Secret:

❯ /setup-bedrock                                                                

────────────────────────────────────────────────────────────────────────────────
  Set up AWS Bedrock
  Verification failed  

  ✘ TypeError: Cannot set properties of undefined (setting 'message')
    Deserialization error: to see the raw response, inspect the hidden field
  {error}.$response on this object.
                                                    
  ❯ 1. Go back and fix
    2. Save anyway (skip verification)

   ↑↓ to navigate · Enter to select · Esc to go back

API key shows:

/setup-bedrock                                                                

────────────────────────────────────────────────────────────────────────────────
  Set up AWS Bedrock
  Verification failed  

  ✘ API key was rejected. Your IAM policy may be missing
  bedrock:CallWithBearerToken or bedrock:InvokeModel.

  ❯ 1. Go back and fix                              
    2. Save anyway (skip verification)

   ↑↓ to navigate · Enter to select · Esc to go back

even though BedrockLimitedAccess does have such permissions:

"Action": [
                "bedrock:Get*",
                "bedrock:List*",
                "bedrock:CallWithBearerToken",
                "bedrock:BatchDeleteEvaluationJob",
                "bedrock:CancelAutomatedReasoningPolicyBuildWorkflow",
                "bedrock:CreateAutomatedReasoningPolicy",
                "bedrock:CreateAutomatedReasoningPolicyTestCase",
                "bedrock:CreateAutomatedReasoningPolicyVersion",
                "bedrock:CreateEvaluationJob",
                "bedrock:CreateGuardrail",
                "bedrock:CreateGuardrailVersion",
                "bedrock:CreateInferenceProfile",
                "bedrock:CreateModelCopyJob",
                "bedrock:CreateModelCustomizationJob",
                "bedrock:CreateModelImportJob",
                "bedrock:CreateModelInvocationJob",
                "bedrock:CreatePromptRouter",
                "bedrock:CreateProvisionedModelThroughput",
                "bedrock:DeleteAutomatedReasoningPolicy",
                "bedrock:DeleteAutomatedReasoningPolicyBuildWorkflow",
                "bedrock:DeleteAutomatedReasoningPolicyTestCase",
                "bedrock:DeleteCustomModel",
                "bedrock:DeleteGuardrail",
                "bedrock:DeleteImportedModel",
                "bedrock:DeleteInferenceProfile",
                "bedrock:DeletePromptRouter",
                "bedrock:DeleteProvisionedModelThroughput",
                "bedrock:ExportAutomatedReasoningPolicyVersion",
                "bedrock:StartAutomatedReasoningPolicyBuildWorkflow",
                "bedrock:StartAutomatedReasoningPolicyTestWorkflow",
                "bedrock:StopEvaluationJob",
                "bedrock:StopModelCustomizationJob",
                "bedrock:StopModelInvocationJob",
                "bedrock:TagResource",
                "bedrock:UntagResource",
                "bedrock:UpdateAutomatedReasoningPolicy",
                "bedrock:UpdateAutomatedReasoningPolicyAnnotations",
                "bedrock:UpdateAutomatedReasoningPolicyTestCase",
                "bedrock:UpdateGuardrail",
                "bedrock:UpdateProvisionedModelThroughput",
                "bedrock:ApplyGuardrail",
                "bedrock:InvokeAutomatedReasoningPolicy",
                "bedrock:InvokeModel",
                "bedrock:InvokeModelWithResponseStream"
            ],
Dssssds · 4 months ago

Has this issue been fixed yet?

❯ hi
  ⎿  403 {"Message":"Authorization header is missing"}
     Retrying in 7 seconds… (attempt 5/10)
chonknick · 4 months ago

Also facing this issue!
Would love to have this fixed pls

sarthchawla · 4 months ago

seems like a bug in v2.1.94 with aws bedrock
Steps to downgrade to 2.1.92:

disable auto upgrades in claude settings.json
{
"env": {
"DISABLE_AUTOUPDATER": "1"
}
}or use bash -> export DISABLE_AUTOUPDATER=1

  1. depending upon your installer force version to 2.1.92

curl -fsSL https://claude.ai/install.sh | bash -s 2.1.92
& ([scriptblock]::Create((irm https://claude.ai/install.ps1))) 2.1.92
claude install 2.1.92  -> i used this and found this to be best since  it lets claude cli handle the downgrading

chonknick · 4 months ago

Seems like the v2.1.96 that was released few minutes ago fixes this.

Thanks!

timothybrown · 4 months ago

Yup, works for me now with v2.1.96!

Dssssds · 4 months ago

Thank you very much, the latest version of Claude Code is now fully compatible with AWS.

github-actions[bot] · 4 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.