Invalid API Request Breaks Claude Session During Anthropic Documentation Fetch

Resolved 💬 7 comments Opened Apr 1, 2025 by omararambula Closed Apr 1, 2025

Bug Description
when fetching antrhopic docs, we get an error 400 and claude session becomes unusable.

Environment Info

  • Platform: macos
  • Terminal: ghostty
  • Version: 0.2.57
  • Feedback ID: 45c2e27a-3859-4507-a68a-701297704a28

Errors

[{"error":"AxiosError: Request failed with status code 403\n    at RA (file:///Users/omar/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:439:1070)\n    at BrotliDecompress.H0 (file:///Users/omar/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:440:9949)\n    at BrotliDecompress.emit (node:events:531:35)\n    at BrotliDecompress.emit (node:domain:488:12)\n    at endReadableNT (node:internal/streams/readable:1696:12)\n    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)\n    at jT.request (file:///Users/omar/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:442:2074)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async Zc2 (file:///Users/omar/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:3354:1075)\n    at async Gc2 (file:///Users/omar/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:3354:1951)\n    at async Object.call (file:///Users/omar/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:3354:6468)\n    at async Zj5 (file:///Users/omar/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:3283:4719)\n    at async K31 (file:///Users/omar/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:3283:3293)\n    at async _N2 (file:///Users/omar/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:934:511)\n    at async Ij5 (file:///Users/omar/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:3283:2640)\n    at async ES1 (file:///Users/omar/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:3283:2471)","timestamp":"2025-04-01T19:45:23.463Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.16.content.1: each tool must have a single result. Found multiple `tool_result` blocks with id: toolu_01An7aJYaSBCt9xcS6vQ4XKD\"}}\n    at J6.generate (file:///Users/omar/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:837:29204)\n    at $6.makeStatusError (file:///Users/omar/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:841:7207)\n    at $6.makeRequest (file:///Users/omar/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:841:8149)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-04-01T19:45:23.648Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.16.content.1: each tool must have a single result. Found multiple `tool_result` blocks with id: toolu_01An7aJYaSBCt9xcS6vQ4XKD\"}}\n    at J6.generate (file:///Users/omar/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:837:29204)\n    at $6.makeStatusError (file:///Users/omar/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:841:7207)\n    at $6.makeRequest (file:///Users/omar/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:841:8149)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-04-01T19:45:25.729Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.16.content.1: each tool must have a single result. Found multiple `tool_result` blocks with id: toolu_01An7aJYaSBCt9xcS6vQ4XKD\"}}\n    at J6.generate (file:///Users/omar/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:837:29204)\n    at $6.makeStatusError (file:///Users/omar/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:841:7207)\n    at $6.makeRequest (file:///Users/omar/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:841:8149)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-04-01T19:45:31.377Z"}]

View original on GitHub ↗

This issue has 7 comments on GitHub. Read the full discussion on GitHub ↗