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.
Bug Description
API Error: 400
{"type":"error","error":{"type":"invalid_request_error","message":"messages.89:
tool_useids were found withouttool_resultblocks immediately after:toolu_01EGToLS7KXHuQbbXPZsaxKM. Each
tool_useblock must have a correspondingtool_resultblock in the next message."}}Environment Info
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\":\"iNote: Error logs were truncated.