Anthropic API 500 Error Causing Unexpected Task Termination

Resolved 💬 3 comments Opened Aug 18, 2025 by yashasvigirdhar Closed Aug 22, 2025

Bug Description
api error 500 and it suddenly stopped without completing the task

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 1.0.83
  • Feedback ID: 83fc5ed0-5fa9-49ea-a43a-0ba10c9e7170

Errors

[{"error":"Error: Tab close: Invalid tab not found!\n    at HjB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1910:12052)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async IyB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2362:6116)\n    at async AbortSignal.Y (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2362:5105)","timestamp":"2025-08-18T15:27:09.302Z"},{"error":"Error: stream ended without producing a Message with role=assistant\n    at dZ1.A (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:950:10397)\n    at dZ1.finalMessage (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:950:8917)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MI8 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1875:18382)\n    at async PI8.sG1.showErrors (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1875:26960)\n    at async sG1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1875:13705)\n    at async PI8 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1875:26671)\n    at async file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1875:28259\n    at async dN0 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1875:3698)\n    at async jI (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1875:28165)","timestamp":"2025-08-18T16:49:03.785Z"},{"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:718:9932\n    at Q (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:677:13339)\n    at USB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1875:29738)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-08-18T16:49:03.793Z"},{"error":"Error: stream ended without producing a Message with role=assistant\n    at dZ1.A (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:950:10397)\n    at dZ1.finalMessage (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:950:8917)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MI8 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1875:18382)\n    at async PI8.sG1.showErrors (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1875:26960)\n    at async sG1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1875:13705)\n    at async PI8 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1875:26671)\n    at async file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1875:28259\n    at async dN0 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1875:3698)\n    at async jI (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1875:28165)","timestamp":"2025-08-18T16:49:09.258Z"},{"error":"Error: stream ended without producing a Message with role=assistant\n    at dZ1.A (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:950:10397)\n    at dZ1.finalMessage (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:950:8917)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MI8 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1875:18382)\n    at async PI8.sG1.showErrors (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1875:26960)\n    at async sG1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1875:13705)\n    at async PI8 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1875:26671)\n    at async file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1875:28259\n    at async dN0 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1875:3698)\n    at async jI (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1875:28165)","timestamp":"2025-08-18T16:50:29.271Z"},{"error":"Error: 500 {\"type\":\"error\",\"error\":{\"type\":\"api_error\",\"message\":\"Internal server error\"}}\n    at D6.generate (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:942:2658)\n    at sP.makeStatusError (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:959:2101)\n    at sP.makeRequest (file:

Note: Error logs were truncated.

View original on GitHub ↗

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