"Missing Tool Result Block for Tool Use in API Request" This title: - Identifies the specific technical issue (missing tool result block) - Uses precise technical terminology - Highlights the key error from the API response - Is concise and descriptive fo
Resolved 💬 1 comment Opened Jun 2, 2025 by danielcor Closed Jun 2, 2025
Bug Description
Asking a question: What's the status of the change to support the live screen in PMZChartServer ? and I just get an API error:
⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.11: tool_use ids were found without tool_result blocks immediately
after: toolu_01MsHsuitHWoYu29bor3qpzn. Each tool_use block must have a corresponding tool_result block in the next message."}}
Environment Info
- Platform: linux
- Terminal: vscode
- Version: 1.0.6
- Feedback ID: aaba3f62-ae38-4190-949b-cabf2b568cb5
Errors
[{"error":"SyntaxError: Unexpected end of JSON input\n at JSON.parse (<anonymous>)\n at l5 (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:563:9977)\n at Tm9 (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:568:307)\n at bH (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:568:995)\n at P8 (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:568:1336)\n at y40.appendEntry (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:572:24557)\n at y40.insertMessageChain (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:572:24498)\n at p31 (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:573:1297)\n at file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1851:1878\n at u7 (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:150:21374)","timestamp":"2025-06-02T14:48:54.962Z"},{"error":"Error: Invalid managed settings: [\n {\n \"code\": \"invalid_type\",\n \"expected\": \"object\",\n \"received\": \"null\",\n \"path\": [],\n \"message\": \"Expected object, received null\"\n }\n]\n at Tm9 (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:568:356)\n at bH (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:568:995)\n at P8 (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:568:1336)\n at y40.appendEntry (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:572:24557)\n at y40.insertMessageChain (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:572:24498)\n at p31 (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:573:1297)\n at file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1851:1878\n at u7 (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:150:21374)\n at pZ (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:150:40861)\n at $W (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:150:34915)","timestamp":"2025-06-02T14:48:54.962Z"},{"error":"SyntaxError: Unexpected end of JSON input\n at JSON.parse (<anonymous>)\n at l5 (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:563:9977)\n at Tm9 (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:568:307)\n at bH (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:568:995)\n at P8 (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:568:1336)\n at y40.appendEntry (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:572:24557)\n at y40.insertMessageChain (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:572:24498)\n at p31 (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:573:1297)\n at file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1851:1878\n at u7 (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:150:21374)","timestamp":"2025-06-02T14:48:54.963Z"},{"error":"Error: Invalid managed settings: [\n {\n \"code\": \"invalid_type\",\n \"expected\": \"object\",\n \"received\": \"null\",\n \"path\": [],\n \"message\": \"Expected object, received null\"\n }\n]\n at Tm9 (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:568:356)\n at bH (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:568:995)\n at P8 (file:///home/danie
Note: Error logs were truncated.
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗