Bug Description
API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.114: tool_use ids were found without
tool_result blocks immediately after: toolu_01TtqtoE6BkdCjrQPZtqCDbJ. Each tool_use block must have a corresponding tool_result block in
the next message."}}
Environment Info
- Platform: darwin
- Terminal: vscode
- Version: 1.0.72
- Feedback ID: ecd3ffc7-daad-4d38-b3e6-163d0a58ec6c
Errors
[{"error":"Error: EISDIR: illegal operation on a directory, read\n at Module.readFileSync (node:fs:435:20)\n at Object.readFileSync (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:686:8960)\n at mIA (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:717:7477)\n at Object.call (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1790:918)\n at call.next (<anonymous>)\n at qq8 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3044:11523)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async XuB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3044:7800)\n at async VjB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2119:822)\n at async $q8 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3044:6911)","timestamp":"2025-08-09T15:54:41.880Z"},{"error":"Error: 401 {\"type\":\"error\",\"error\":{\"type\":\"authentication_error\",\"message\":\"OAuth token has expired. Please obtain a new token or refresh your existing token.\"}}\n at Q6.generate (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:933:2338)\n at uP.makeStatusError (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:950:2101)\n at uP.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:950:5315)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-08-10T03:55:37.718Z"},{"error":"SyntaxError: Unexpected token 'A', \"API Error:\"... is not valid JSON\n at JSON.parse (<anonymous>)\n at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:738:9932\n at Q (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:674:14418)\n at kRB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1743:29914)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-08-10T03:55:37.727Z"},{"error":"Error: 401 {\"type\":\"error\",\"error\":{\"type\":\"authentication_error\",\"message\":\"OAuth token has expired. Please obtain a new token or refresh your existing token.\"}}\n at Q6.generate (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:933:2338)\n at uP.makeStatusError (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:950:2101)\n at uP.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:950:5315)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async RRB.rZ1.showErrors (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1743:24594)\n at async rZ1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1743:13631)\n at async RRB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1743:24445)\n at async file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1743:19427\n at async Iq0 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1743:5163)\n at async P11 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1743:19397)","timestamp":"2025-08-10T03:55:47.342Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.114: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_01TtqtoE6BkdCjrQPZtqCDbJ. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"}}\n at Q6.generate (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:933:2303)\n at uP.makeStatusError (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:950:2101)\n at uP.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:950:5315)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async RRB.rZ1.showErrors (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1743:24594)\n at async rZ1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1743:13631)\n at async RRB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1743:24445)\n at async file:///opt/homebr
Note: Error logs were truncated.
Bug Description
API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.114:
tool_useids were found withouttool_resultblocks immediately after: toolu_01TtqtoE6BkdCjrQPZtqCDbJ. Eachtool_useblock must have a correspondingtool_resultblock inthe next message."}}
Environment Info
Errors
[{"error":"Error: EISDIR: illegal operation on a directory, read\n at Module.readFileSync (node:fs:435:20)\n at Object.readFileSync (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:686:8960)\n at mIA (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:717:7477)\n at Object.call (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1790:918)\n at call.next (<anonymous>)\n at qq8 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3044:11523)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async XuB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3044:7800)\n at async VjB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2119:822)\n at async $q8 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3044:6911)","timestamp":"2025-08-09T15:54:41.880Z"},{"error":"Error: 401 {\"type\":\"error\",\"error\":{\"type\":\"authentication_error\",\"message\":\"OAuth token has expired. Please obtain a new token or refresh your existing token.\"}}\n at Q6.generate (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:933:2338)\n at uP.makeStatusError (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:950:2101)\n at uP.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:950:5315)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-08-10T03:55:37.718Z"},{"error":"SyntaxError: Unexpected token 'A', \"API Error:\"... is not valid JSON\n at JSON.parse (<anonymous>)\n at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:738:9932\n at Q (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:674:14418)\n at kRB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1743:29914)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-08-10T03:55:37.727Z"},{"error":"Error: 401 {\"type\":\"error\",\"error\":{\"type\":\"authentication_error\",\"message\":\"OAuth token has expired. Please obtain a new token or refresh your existing token.\"}}\n at Q6.generate (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:933:2338)\n at uP.makeStatusError (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:950:2101)\n at uP.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:950:5315)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async RRB.rZ1.showErrors (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1743:24594)\n at async rZ1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1743:13631)\n at async RRB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1743:24445)\n at async file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1743:19427\n at async Iq0 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1743:5163)\n at async P11 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1743:19397)","timestamp":"2025-08-10T03:55:47.342Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.114: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_01TtqtoE6BkdCjrQPZtqCDbJ. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"}}\n at Q6.generate (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:933:2303)\n at uP.makeStatusError (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:950:2101)\n at uP.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:950:5315)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async RRB.rZ1.showErrors (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1743:24594)\n at async rZ1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1743:13631)\n at async RRB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1743:24445)\n at async file:///opt/homebrNote: Error logs were truncated.