[Bug] Anthropic API Error: Insufficient Error Handling for 500 Responses

Status Closed — not planned
Maintainer reply None cached
Activity 7 comments · opened Sep 24, 2025 · closed Jan 6, 2026

Bug Description
keep API Error:500 without other info is annoying

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 1.0.123
  • Feedback ID: 9c77c84e-ffef-4828-ace4-4689b279bc30

Errors

[{"error":"Error: Request was aborted.\n    at AP.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:994:3864)\n    at processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at runNextTicks (node:internal/process/task_queues:69:3)\n    at listOnTimeout (node:internal/timers:569:9)\n    at process.processTimers (node:internal/timers:543:7)","timestamp":"2025-09-24T00:11:43.349Z"},{"error":"MaxFileReadTokenExceededError: File content (29899 tokens) exceeds maximum allowed tokens (25000). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n    at SP2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1727:432)\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:1722:1036)\n    at async bM (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1727:2967)\n    at async file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1808:1361","timestamp":"2025-09-24T00:22:30.200Z"},{"error":"Error: Request was aborted.\n    at AP.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:994:3864)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-09-24T00:35:45.876Z"},{"error":"Error: Request was aborted.\n    at L61._createMessage (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:985:7955)\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-09-24T00:36:17.394Z"},{"error":"Error: Request was aborted.\n    at AP.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:994:3864)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-09-24T02:09:25.040Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at aF (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1792:1184)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1792:912\n    at Array.map (<anonymous>)\n    at OX (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1792:903)\n    at yGB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2887:9393)\n    at XC (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:34:19415)\n    at Ep (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:36:42814)\n    at F9 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:36:38355)\n    at Mh (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:36:38283)\n    at qC (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:36:38137)","timestamp":"2025-09-24T03:02:49.979Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at aF (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1792:1184)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1792:912\n    at Array.map (<anonymous>)\n    at OX (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1792:903)\n    at yGB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2887:9393)\n    at XC (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:34:19415)\n    at Ep (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:36:42814)\n    at F9 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:36:38355)\n    at Mh (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:36:38283)\n    at qC (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:36:38137)","timestamp":"2025-09-24T03:15:49.045Z"},{"error":"Error: Request was aborted.\n    at L61._createMessage (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:985:7955)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-09-24T03:22:47.418Z"},{"error":"Error: Request was aborted.\n    at L61._createMessage (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:985:7955)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-09-24T03:43:18.495Z"},{"error":"Error: Request was aborted.\n    at AP.makeRequest (file:///opt/homebrew/lib/node_

Note: Error logs were truncated.

View original on GitHub ↗

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