Bug Description
after some period of time in VS Code and Claude i get this error, it's second time within two days, I need to restart console and start new chat let's analyze why strategy was not good ?
⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.2: tool_use ids were found without tool_result blocks immediately after: toolu_01LXaVjS1uzmJHt3mAgzCAFB. Each tool_use block
must have a corresponding tool_result block in the next message."}}
Environment Info
- Platform: linux
- Terminal: vscode
- Version: 1.0.72
- Feedback ID: 8df7365b-ee0e-43f7-82d4-e5cf57e3b1f0
Errors
[{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n at NX (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1858:1184)\n at file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1858:912\n at Array.map (<anonymous>)\n at LX (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1858:903)\n at SjB (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2218:5231)\n at $R (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:327:19859)\n at yb (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:329:42848)\n at Sb (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:329:38369)\n at Ij (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:329:38297)\n at gR (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:329:38151)","timestamp":"2025-08-09T17:03:39.317Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n at NX (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1858:1184)\n at file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1858:912\n at Array.map (<anonymous>)\n at LX (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1858:903)\n at SjB (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2218:5231)\n at $R (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:327:19859)\n at yb (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:329:42848)\n at Sb (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:329:38369)\n at Ij (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:329:38297)\n at gR (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:329:38151)","timestamp":"2025-08-09T17:40:07.913Z"},{"error":"Error: Request timed out.\n at uP.makeRequest (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:950:4429)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async RRB.rZ1.showErrors (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1743:24594)\n at async rZ1 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1743:13631)\n at async RRB (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1743:24445)\n at async file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1743:19427\n at async Iq0 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1743:5163)\n at async P11 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1743:19397)\n at async Lb1 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2218:979)\n at async LvB (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2312:1033)","timestamp":"2025-08-09T17:41:26.554Z"},{"error":"Error: API Error: Request timed out.\n at Lb1 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2218:1363)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async LvB (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2312:1033)\n at async kS (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:3044:3136)\n at async kS (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:3044:5541)\n at async f2 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:3287:2695)\n at async gB (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:3287:2930)","timestamp":"2025-08-09T17:41:26.614Z"},{"error":"Error: Request was aborted.\n at uP.makeRequest (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:950:3652)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-08-09T17:41:26.683Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.2: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_01LXa
Note: Error logs were truncated.
Bug Description
after some period of time in VS Code and Claude i get this error, it's second time within two days, I need to restart console and start new chat let's analyze why strategy was not good ?
⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.2:
tool_useids were found withouttool_resultblocks immediately after: toolu_01LXaVjS1uzmJHt3mAgzCAFB. Eachtool_useblockmust have a corresponding
tool_resultblock in the next message."}}Environment Info
Errors
[{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n at NX (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1858:1184)\n at file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1858:912\n at Array.map (<anonymous>)\n at LX (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1858:903)\n at SjB (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2218:5231)\n at $R (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:327:19859)\n at yb (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:329:42848)\n at Sb (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:329:38369)\n at Ij (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:329:38297)\n at gR (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:329:38151)","timestamp":"2025-08-09T17:03:39.317Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n at NX (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1858:1184)\n at file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1858:912\n at Array.map (<anonymous>)\n at LX (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1858:903)\n at SjB (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2218:5231)\n at $R (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:327:19859)\n at yb (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:329:42848)\n at Sb (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:329:38369)\n at Ij (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:329:38297)\n at gR (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:329:38151)","timestamp":"2025-08-09T17:40:07.913Z"},{"error":"Error: Request timed out.\n at uP.makeRequest (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:950:4429)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async RRB.rZ1.showErrors (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1743:24594)\n at async rZ1 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1743:13631)\n at async RRB (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1743:24445)\n at async file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1743:19427\n at async Iq0 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1743:5163)\n at async P11 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1743:19397)\n at async Lb1 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2218:979)\n at async LvB (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2312:1033)","timestamp":"2025-08-09T17:41:26.554Z"},{"error":"Error: API Error: Request timed out.\n at Lb1 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2218:1363)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async LvB (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2312:1033)\n at async kS (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:3044:3136)\n at async kS (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:3044:5541)\n at async f2 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:3287:2695)\n at async gB (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:3287:2930)","timestamp":"2025-08-09T17:41:26.614Z"},{"error":"Error: Request was aborted.\n at uP.makeRequest (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:950:3652)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-08-09T17:41:26.683Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.2: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_01LXaNote: Error logs were truncated.