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_01AbmHJypDhKqBF7NKdRPJ6d. Each tool_use block must have a corresponding tool_result block in the next message."}}
Environment Info
- Platform: darwin
- Terminal: Apple_Terminal
- Version: 1.0.62
- Feedback ID: f220fea8-bfd9-4661-900c-0e5c70a71ce5
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_01AbmHJypDhKqBF7NKdRPJ6d. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"}}\n at n4.generate (file:///Users/umer/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1317:12488)\n at GP.makeStatusError (file:///Users/umer/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1334:2101)\n at GP.makeRequest (file:///Users/umer/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1334:5315)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async OvB.bG1.showErrors (file:///Users/umer/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2907:14365)\n at async bG1 (file:///Users/umer/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2368:5642)\n at async OvB (file:///Users/umer/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2907:14216)\n at async file:///Users/umer/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2907:9271\n at async hL0 (file:///Users/umer/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2907:1690)\n at async re (file:///Users/umer/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2907:9241)","timestamp":"2025-08-03T22:10:17.654Z"},{"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_01AbmHJypDhKqBF7NKdRPJ6d. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"}}\n at n4.generate (file:///Users/umer/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1317:12488)\n at GP.makeStatusError (file:///Users/umer/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1334:2101)\n at GP.makeRequest (file:///Users/umer/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1334:5315)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async OvB.bG1.showErrors (file:///Users/umer/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2907:14365)\n at async bG1 (file:///Users/umer/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2368:5642)\n at async OvB (file:///Users/umer/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2907:14216)\n at async file:///Users/umer/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2907:9271\n at async hL0 (file:///Users/umer/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2907:1690)\n at async re (file:///Users/umer/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2907:9241)","timestamp":"2025-08-03T22:11:20.114Z"}]
Bug Description
API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.6:
tool_useids were found withouttool_resultblocksimmediately after: toolu_01AbmHJypDhKqBF7NKdRPJ6d. Each
tool_useblock must have a correspondingtool_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_01AbmHJypDhKqBF7NKdRPJ6d. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"}}\n at n4.generate (file:///Users/umer/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1317:12488)\n at GP.makeStatusError (file:///Users/umer/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1334:2101)\n at GP.makeRequest (file:///Users/umer/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1334:5315)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async OvB.bG1.showErrors (file:///Users/umer/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2907:14365)\n at async bG1 (file:///Users/umer/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2368:5642)\n at async OvB (file:///Users/umer/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2907:14216)\n at async file:///Users/umer/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2907:9271\n at async hL0 (file:///Users/umer/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2907:1690)\n at async re (file:///Users/umer/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2907:9241)","timestamp":"2025-08-03T22:10:17.654Z"},{"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_01AbmHJypDhKqBF7NKdRPJ6d. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"}}\n at n4.generate (file:///Users/umer/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1317:12488)\n at GP.makeStatusError (file:///Users/umer/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1334:2101)\n at GP.makeRequest (file:///Users/umer/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1334:5315)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async OvB.bG1.showErrors (file:///Users/umer/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2907:14365)\n at async bG1 (file:///Users/umer/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2368:5642)\n at async OvB (file:///Users/umer/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2907:14216)\n at async file:///Users/umer/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2907:9271\n at async hL0 (file:///Users/umer/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2907:1690)\n at async re (file:///Users/umer/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2907:9241)","timestamp":"2025-08-03T22:11:20.114Z"}]