Skip to content

Missing Tool Result Block for Tool Use ID toolu_01EGToLS7KXHuQbbXPZsaxKM #1577

@danielcor

Description

@danielcor

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

Environment Info

  • Platform: linux
  • Terminal: vscode
  • Version: 1.0.11
  • Feedback ID: 1d0a0ac2-7e76-4894-bdc4-dc035c27cb32

Errors

[{"error":"ShellError: Shell command failed\n    at Object.call (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1547:1326)\n    at async pZ5 (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1889:19078)\n    at async YK1 (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1889:17664)\n    at async dZ5 (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1889:16706)\n    at async hZ5 (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1889:16356)\n    at async oe (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1889:15392)\n    at async oe (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1889:16218)\n    at async oe (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1889:16218)\n    at async oe (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1889:16218)\n    at async oe (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1889:16218)","timestamp":"2025-06-04T17:32:59.945Z"},{"error":"Error: Request was aborted.\n    at Ho._createMessage (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1373:6810)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-06-04T17:39:15.344Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.89: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_01EGToLS7KXHuQbbXPZsaxKM. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"}}\n    at Y5.generate (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1367:12578)\n    at Jw.makeStatusError (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1382:2082)\n    at Jw.makeRequest (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1382:5257)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async ve.showErrors (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1654:20326)\n    at async ve (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1654:12078)\n    at async bz2 (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1654:20189)\n    at async file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1654:16876\n    at async Ro1 (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1654:5204)\n    at async fd (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1654:16846)","timestamp":"2025-06-04T17:44:23.144Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.89: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_01EGToLS7KXHuQbbXPZsaxKM. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"}}\n    at Y5.generate (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1367:12578)\n    at Jw.makeStatusError (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1382:2082)\n    at Jw.makeRequest (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1382:5257)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async ve.showErrors (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1654:20326)\n    at async ve (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1654:12078)\n    at async bz2 (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1654:20189)\n    at async file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1654:16876\n    at async Ro1 (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1654:5204)\n    at async fd (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1654:16846)","timestamp":"2025-06-04T18:10:28.983Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"i

Note: Error logs were truncated.

Metadata

Metadata

Assignees

No one assigned

    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