Bug Description
API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.6: tool_use ids
were found without tool_result blocks immediately after: toolu_019aLkVUFjyvChUtaKKnfbm6. Each tool_use block
must have a corresponding tool_result block in the next message."}}
Environment Info
- Platform: win32
- Terminal: cursor
- Version: 1.0.73
- Feedback ID: a8872815-f182-4a9e-8327-baa359a493de
Errors
[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.6: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_019aLkVUFjyvChUtaKKnfbm6. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"}}\n at G6.generate (file:///C:/Users/barry/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:936:2303)\n at lP.makeStatusError (file:///C:/Users/barry/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:953:2101)\n at lP.makeRequest (file:///C:/Users/barry/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:953:5315)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async LG1.showErrors (file:///C:/Users/barry/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:1809:24594)\n at async LG1 (file:///C:/Users/barry/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:1809:13631)\n at async dTB (file:///C:/Users/barry/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:1809:24445)\n at async file:///C:/Users/barry/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:1809:19427\n at async oq0 (file:///C:/Users/barry/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:1809:5163)\n at async d11 (file:///C:/Users/barry/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:1809:19397)","timestamp":"2025-08-12T07:53:02.486Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.6: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_019aLkVUFjyvChUtaKKnfbm6. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"}}\n at G6.generate (file:///C:/Users/barry/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:936:2303)\n at lP.makeStatusError (file:///C:/Users/barry/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:953:2101)\n at lP.makeRequest (file:///C:/Users/barry/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:953:5315)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async LG1.showErrors (file:///C:/Users/barry/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:1809:24594)\n at async LG1 (file:///C:/Users/barry/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:1809:13631)\n at async dTB (file:///C:/Users/barry/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:1809:24445)\n at async file:///C:/Users/barry/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:1809:19427\n at async oq0 (file:///C:/Users/barry/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:1809:5163)\n at async d11 (file:///C:/Users/barry/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:1809:19397)","timestamp":"2025-08-12T07:55:04.438Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.6: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_019aLkVUFjyvChUtaKKnfbm6. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"}}\n at G6.generate (file:///C:/Users/barry/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:936:2303)\n at lP.makeStatusError (file:///C:/Users/barry/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:953:2101)\n at lP.makeRequest (file:///C:/Users/barry/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:953:5315)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async LG1.showErrors (file:///C:/Users/barry/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:1809:24594)\n at async LG1 (file:///C:/Users/barry/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:1809:13631)\n at async dTB (file:///C:/Users/barry/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:1809:24445)\n at async file:///C:/Users/barry/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:1809:19427\n at async oq0 (file:///C:/Users/barry/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:1809:5163)\n at async d11 (file:///C:/Users/barry/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:1809:19397)","timestamp":"2025-08-12T07:55:20.013Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"
Note: Error logs were truncated.
Bug Description
API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.6:
tool_useidswere found without
tool_resultblocks immediately after: toolu_019aLkVUFjyvChUtaKKnfbm6. Eachtool_useblockmust have a corresponding
tool_resultblock in the next message."}}Environment Info
Errors
[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.6: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_019aLkVUFjyvChUtaKKnfbm6. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"}}\n at G6.generate (file:///C:/Users/barry/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:936:2303)\n at lP.makeStatusError (file:///C:/Users/barry/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:953:2101)\n at lP.makeRequest (file:///C:/Users/barry/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:953:5315)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async LG1.showErrors (file:///C:/Users/barry/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:1809:24594)\n at async LG1 (file:///C:/Users/barry/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:1809:13631)\n at async dTB (file:///C:/Users/barry/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:1809:24445)\n at async file:///C:/Users/barry/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:1809:19427\n at async oq0 (file:///C:/Users/barry/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:1809:5163)\n at async d11 (file:///C:/Users/barry/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:1809:19397)","timestamp":"2025-08-12T07:53:02.486Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.6: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_019aLkVUFjyvChUtaKKnfbm6. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"}}\n at G6.generate (file:///C:/Users/barry/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:936:2303)\n at lP.makeStatusError (file:///C:/Users/barry/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:953:2101)\n at lP.makeRequest (file:///C:/Users/barry/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:953:5315)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async LG1.showErrors (file:///C:/Users/barry/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:1809:24594)\n at async LG1 (file:///C:/Users/barry/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:1809:13631)\n at async dTB (file:///C:/Users/barry/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:1809:24445)\n at async file:///C:/Users/barry/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:1809:19427\n at async oq0 (file:///C:/Users/barry/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:1809:5163)\n at async d11 (file:///C:/Users/barry/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:1809:19397)","timestamp":"2025-08-12T07:55:04.438Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.6: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_019aLkVUFjyvChUtaKKnfbm6. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"}}\n at G6.generate (file:///C:/Users/barry/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:936:2303)\n at lP.makeStatusError (file:///C:/Users/barry/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:953:2101)\n at lP.makeRequest (file:///C:/Users/barry/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:953:5315)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async LG1.showErrors (file:///C:/Users/barry/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:1809:24594)\n at async LG1 (file:///C:/Users/barry/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:1809:13631)\n at async dTB (file:///C:/Users/barry/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:1809:24445)\n at async file:///C:/Users/barry/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:1809:19427\n at async oq0 (file:///C:/Users/barry/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:1809:5163)\n at async d11 (file:///C:/Users/barry/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:1809:19397)","timestamp":"2025-08-12T07:55:20.013Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"Note: Error logs were truncated.