Skip to content

Missing Tool Result Block for Tool Use ID toolu_015m4ArUNHceJXtPrpCNnK7L #3754

@amanthanvi

Description

@amanthanvi

Bug Description
API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.41: tool_use ids were found without tool_result blocks immediately after: toolu_015m4ArUNHceJXtPrpCNnK7L. Each tool_use block must have a corresponding tool_result block in the
next message."}}

Environment Info

  • Platform: linux
  • Terminal: vscode
  • Version: 1.0.53
  • Feedback ID: 6ec710d1-c771-450d-ab57-5469a0ed1841

Errors

[{"error":"Error: Language not supported while highlighting code, falling back to markdown: png\n    at file:///home/athanvi/.nvm/versions/node/v23.5.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1252:418\n    at Object.useMemo (file:///home/athanvi/.nvm/versions/node/v23.5.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:65:26272)\n    at ImB.useMemo (file:///home/athanvi/.nvm/versions/node/v23.5.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:46:15576)\n    at NW (file:///home/athanvi/.nvm/versions/node/v23.5.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1252:312)\n    at QN (file:///home/athanvi/.nvm/versions/node/v23.5.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:65:19799)\n    at dS (file:///home/athanvi/.nvm/versions/node/v23.5.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:42569)\n    at uS (file:///home/athanvi/.nvm/versions/node/v23.5.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:38118)\n    at nL (file:///home/athanvi/.nvm/versions/node/v23.5.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:38046)\n    at qN (file:///home/athanvi/.nvm/versions/node/v23.5.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:37900)\n    at BJ (file:///home/athanvi/.nvm/versions/node/v23.5.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:34990)","timestamp":"2025-07-17T04:45:08.691Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.41: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_015m4ArUNHceJXtPrpCNnK7L. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"}}\n    at eQ.generate (file:///home/athanvi/.nvm/versions/node/v23.5.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1180:6428)\n    at k$.makeStatusError (file:///home/athanvi/.nvm/versions/node/v23.5.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1197:2101)\n    at k$.makeRequest (file:///home/athanvi/.nvm/versions/node/v23.5.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1197:5315)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async aB1.showErrors (file:///home/athanvi/.nvm/versions/node/v23.5.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2594:14107)\n    at async aB1 (file:///home/athanvi/.nvm/versions/node/v23.5.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2140:1658)\n    at async qBB (file:///home/athanvi/.nvm/versions/node/v23.5.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2594:13956)\n    at async file:///home/athanvi/.nvm/versions/node/v23.5.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2594:9065\n    at async DIA (file:///home/athanvi/.nvm/versions/node/v23.5.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2594:1626)\n    at async Yp (file:///home/athanvi/.nvm/versions/node/v23.5.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2594:9035)","timestamp":"2025-07-17T04:45:11.529Z"}]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions