Skip to content

Invalid Request: Mismatch in Thinking Block Parameters During API Call #1702

Closed as not planned

Description

@tim-watcha

Bug Description
API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.3.content.24: When providing thinking or redacted_thinking blocks, the
blocks must match the parameters during the original request."}}

Environment Info

  • Platform: macos
  • Terminal: pycharm
  • Version: 1.0.16
  • Feedback ID: 30c84289-3d6d-4f63-ae82-873165ada649

Errors

[{"error":"Error: Command failed: security find-generic-password -a $USER -w -s \"Claude Code\"\nsecurity: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n\n    at genericNodeError (node:internal/errors:983:15)\n    at wrappedFn (node:internal/errors:537:14)\n    at checkExecSyncError (node:child_process:882:11)\n    at execSync (node:child_process:954:15)\n    at WZ (file:///Users/choongjaelee/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:654:3921)\n    at file:///Users/choongjaelee/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:582:11794\n    at Q (file:///Users/choongjaelee/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:526:17190)\n    at pJ (file:///Users/choongjaelee/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:582:10940)\n    at iP (file:///Users/choongjaelee/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:582:10021)\n    at n6 (file:///Users/choongjaelee/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:582:14133)","timestamp":"2025-06-06T07:37:08.815Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at kD (file:///Users/choongjaelee/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1476:1169)\n    at file:///Users/choongjaelee/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1476:905\n    at Array.map (<anonymous>)\n    at mw (file:///Users/choongjaelee/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1476:896)\n    at kN2 (file:///Users/choongjaelee/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1920:12623)\n    at JE (file:///Users/choongjaelee/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:142:19803)\n    at FT (file:///Users/choongjaelee/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:144:42551)\n    at YT (file:///Users/choongjaelee/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:144:38100)\n    at t$ (file:///Users/choongjaelee/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:144:38028)\n    at SE (file:///Users/choongjaelee/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:144:37882)","timestamp":"2025-06-06T07:39:36.255Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at kD (file:///Users/choongjaelee/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1476:1169)\n    at file:///Users/choongjaelee/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1476:905\n    at Array.map (<anonymous>)\n    at mw (file:///Users/choongjaelee/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1476:896)\n    at kN2 (file:///Users/choongjaelee/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1920:12623)\n    at JE (file:///Users/choongjaelee/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:142:19803)\n    at FT (file:///Users/choongjaelee/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:144:42551)\n    at YT (file:///Users/choongjaelee/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:144:38100)\n    at t$ (file:///Users/choongjaelee/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:144:38028)\n    at SE (file:///Users/choongjaelee/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:144:37882)","timestamp":"2025-06-06T07:40:26.810Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at kD (file:///Users/choongjaelee/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1476:1169)\n    at file:///Users/choongjaelee/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1476:905\n    at Array.map (<anonymous>)\n    at mw (file:///Users/choongjaelee/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1476:896)\n    at ON2 (file:///Users/choongjaelee/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1920:9259)\n    at JE (file:///Users/choongjaelee/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:142:19803)\n    at FT (file:///Users/choongjaelee/.

Note: Error logs were truncated.

Activity

  1. github-actions commented on Oct 10, 2025

    @github-actions

    This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

  2. github-actions commented on Dec 10, 2025

    @github-actions

    This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.

  3. github-actions commented on Dec 18, 2025

    @github-actions

    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.

  4. locked as resolved and limited conversation to collaborators on Dec 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:apiarea:modelautocloseIssue will be closed automaticallybugSomething isn't workingplatform:macosIssue specifically occurs on macOS

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions