[Bug] Anthropic API Error: Missing Tool Result Block
Resolved 💬 3 comments Opened Sep 13, 2025 by lotustea Closed Sep 18, 2025
Bug Description
⏺ Read(~/repositorios/adornoslab/CHECKOUT_PRO_POLLING_IMPLEMENTATION.md)
⎿ Read 658 lines (ctrl+o to expand)
⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.14: tool_use ids were found without tool_result blocks
immediately after: toolu_015Ngk8yrE6gsmaYaf86N9YL, toolu_01YGBef9jvMkmpBaDjQNGL9o. Each tool_use block must have a corresponding tool_result block
in the next message."},"request_id":"req_011CT7JYYbsuSTLG71FjNBnk"}
Environment Info
- Platform: darwin
- Terminal: iTerm.app
- Version: 1.0.113
- Feedback ID: a37d6185-1cd6-422d-9cf6-869f9f1eee93
Errors
[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.14: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_015Ngk8yrE6gsmaYaf86N9YL, toolu_01YGBef9jvMkmpBaDjQNGL9o. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"},\"request_id\":\"req_011CT7JYYbsuSTLG71FjNBnk\"}\n at V4.generate (file:///Users/lotustea/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:993:2412)\n at mT.makeStatusError (file:///Users/lotustea/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1010:2131)\n at mT.makeRequest (file:///Users/lotustea/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1010:5344)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async LY1.showErrors (file:///Users/lotustea/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1918:29783)\n at async LY1 (file:///Users/lotustea/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1918:18101)\n at async fYB (file:///Users/lotustea/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1918:29610)\n at async file:///Users/lotustea/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1918:24438\n at async Pw0 (file:///Users/lotustea/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1918:4362)\n at async X01 (file:///Users/lotustea/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1918:24408)","timestamp":"2025-09-13T23:55:32.045Z"}]This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗