Bug Description
this is still an issue -- I didn't hit escape right before this, not sure what caused it or how to reproduce this time:
⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.26: tool_use ids were found without tool_result blocks immediately after: toolu_012qHLi1dcwjja9dLU4hLUss. Each tool_use
block must have a corresponding tool_result block in the next message."}}
Environment Info
- Platform: linux
- Terminal: vscode
- Version: 1.0.25
- Feedback ID: 23bebba3-1d65-4fc7-8461-06cb821850fb
Errors
[{"error":"Error: Request was aborted.\n at Sw.makeRequest (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1315:3784)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-06-17T15:23:57.575Z"},{"error":"Error: Request was aborted.\n at lo._createMessage (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1306:6810)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-06-17T15:26:10.824Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.26: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_012qHLi1dcwjja9dLU4hLUss. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"}}\n at h6.generate (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1300:12578)\n at Sw.makeStatusError (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1315:2082)\n at Sw.makeRequest (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1315:5257)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async GE2.E11.showErrors (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1668:22049)\n at async E11 (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1668:12215)\n at async GE2 (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1668:21895)\n at async file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1668:17115\n at async ft1 (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1668:5163)\n at async Xu (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1668:17085)","timestamp":"2025-06-17T15:30:18.592Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.26: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_012qHLi1dcwjja9dLU4hLUss. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"}}\n at h6.generate (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1300:12578)\n at Sw.makeStatusError (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1315:2082)\n at Sw.makeRequest (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1315:5257)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async GE2.E11.showErrors (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1668:22049)\n at async E11 (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1668:12215)\n at async GE2 (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1668:21895)\n at async file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1668:17115\n at async ft1 (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1668:5163)\n at async Xu (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1668:17085)","timestamp":"2025-06-17T15:30:42.542Z"}]
Bug Description
this is still an issue -- I didn't hit escape right before this, not sure what caused it or how to reproduce this time:
⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.26:
tool_useids were found withouttool_resultblocks immediately after: toolu_012qHLi1dcwjja9dLU4hLUss. Eachtool_useblock must have a corresponding
tool_resultblock in the next message."}}Environment Info
Errors
[{"error":"Error: Request was aborted.\n at Sw.makeRequest (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1315:3784)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-06-17T15:23:57.575Z"},{"error":"Error: Request was aborted.\n at lo._createMessage (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1306:6810)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-06-17T15:26:10.824Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.26: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_012qHLi1dcwjja9dLU4hLUss. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"}}\n at h6.generate (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1300:12578)\n at Sw.makeStatusError (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1315:2082)\n at Sw.makeRequest (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1315:5257)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async GE2.E11.showErrors (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1668:22049)\n at async E11 (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1668:12215)\n at async GE2 (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1668:21895)\n at async file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1668:17115\n at async ft1 (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1668:5163)\n at async Xu (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1668:17085)","timestamp":"2025-06-17T15:30:18.592Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.26: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_012qHLi1dcwjja9dLU4hLUss. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"}}\n at h6.generate (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1300:12578)\n at Sw.makeStatusError (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1315:2082)\n at Sw.makeRequest (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1315:5257)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async GE2.E11.showErrors (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1668:22049)\n at async E11 (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1668:12215)\n at async GE2 (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1668:21895)\n at async file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1668:17115\n at async ft1 (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1668:5163)\n at async Xu (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1668:17085)","timestamp":"2025-06-17T15:30:42.542Z"}]