[Bug] Anthropic API Error: Client Closed Request (499) - THERE"S NO SUCH THING AS MODEL WELFARE!

Resolved 💬 3 comments Opened Aug 29, 2025 by brandontan Closed Sep 2, 2025

Bug Description
⎿  API Error: 499 {"error":"Client closed request"} - stop empowering lazy AI

Environment Info

  • Platform: darwin
  • Terminal: WarpTerminal
  • Version: 1.0.96
  • Feedback ID: 8ab56177-6323-4da4-be4b-05fb61cfc948

Errors

[{"error":"SyntaxError: Unexpected token 'I', \"I apologiz\"... is not valid JSON\n    at JSON.parse (<anonymous>)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:704:9932\n    at Q (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:671:13288)\n    at Ir2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1058:1990)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-08-29T07:43:34.775Z"},{"error":"MCPContentTooLargeError: MCP tool \"read_graph\" response (29533 tokens) exceeds maximum allowed tokens (25000). Please use pagination, filtering, or limit parameters to reduce the response size.\n    at uD0 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1843:5007)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async FQB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1873:13948)\n    at async Object.call (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1873:8561)\n    at async vM5 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3529:11340)\n    at async EmB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3529:7539)\n    at async _M5 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3529:6402)\n    at async yM5 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3529:5939)\n    at async LE (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3529:3070)\n    at async LE (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3529:3891)","timestamp":"2025-08-29T07:44:26.043Z"},{"error":"Error: {\"error\":{\"name\":\"Error\",\"message\":\"Failed to apply database migration: ERROR:  42P13: cannot change return type of existing function\\nHINT:  Use DROP FUNCTION get_coaching_analysis_data(text) first.\\n\"}}\n    at FQB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1873:13692)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async Object.call (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1873:8561)\n    at async vM5 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3529:11340)\n    at async EmB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3529:7539)\n    at async _M5 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3529:6402)\n    at async yM5 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3529:5939)\n    at async LE (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3529:3070)\n    at async LE (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3529:3891)\n    at async LE (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3529:3891)","timestamp":"2025-08-29T07:46:18.552Z"},{"error":"Error: Request was aborted.\n    at UP.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:943:3864)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-08-29T07:46:47.286Z"},{"error":"Error: Request was aborted.\n    at UP.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:943:3864)\n    at processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at runNextTicks (node:internal/process/task_queues:69:3)\n    at process.processTimers (node:internal/timers:540:9)","timestamp":"2025-08-29T07:47:20.446Z"},{"error":"Error: {\"error\":{\"name\":\"Error\",\"message\":\"Failed to apply database migration: ERROR:  42P13: cannot change return type of existing function\\nDETAIL:  Row type defined by OUT parameters is different.\\nHINT:  Use DROP FUNCTION get_coaching_analysis_data(text) first.\\n\"}}\n    at FQB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1873:13692)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async Object.call (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1873:8561)\n    at async vM5 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3529:11340)\n    at async EmB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3529:7539)\n    at async _M5 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3529:6402)\n    at async yM5 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3529:5939)\n    at async LE (file:///

Note: Error logs were truncated.

View original on GitHub ↗

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