[Bug] Anthropic API Error: 499 Client Closed Request Interrupts Workflow

Resolved 💬 3 comments Opened Oct 1, 2025 by syamil09 Closed Oct 4, 2025

Bug Description
i always got API Error: 499 {"error":"Client closed request"} and need to reopen the terminal caused lost of previous context

Environment Info

  • Platform: win32
  • Terminal: null
  • Version: 2.0.0
  • Feedback ID:

Errors

[{"error":"AxiosError: Request failed with status code 401\n    at fN (file:///C:/Users/Leonovo/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:715:1077)\n    at IncomingMessage.z0 (file:///C:/Users/Leonovo/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:716:9955)\n    at IncomingMessage.emit (node:events:530:35)\n    at IncomingMessage.emit (node:domain:489:12)\n    at endReadableNT (node:internal/streams/readable:1698:12)\n    at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n    at vQ1.request (file:///C:/Users/Leonovo/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:718:2088)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async UWA (file:///C:/Users/Leonovo/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:895:3745)","timestamp":"2025-09-30T06:23:38.678Z"},{"error":"fv1: Another process is currently installing an update\n    at lY1 (file:///C:/Users/Leonovo/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:2194:1794)\n    at file:///C:/Users/Leonovo/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3177:8700\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-09-30T06:30:34.894Z"},{"error":"fv1: Another process is currently installing an update\n    at lY1 (file:///C:/Users/Leonovo/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:2194:1794)\n    at file:///C:/Users/Leonovo/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3177:8700\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-09-30T06:30:36.106Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"This request would exceed your account's rate limit. Please try again later.\"},\"request_id\":\"req_011CTeB5aot8y9JuFbFChRcZ\"}\n    at B4.generate (file:///C:/Users/Leonovo/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:895:21164)\n    at yP.makeStatusError (file:///C:/Users/Leonovo/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1034:2131)\n    at yP.makeRequest (file:///C:/Users/Leonovo/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1034:5344)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-09-30T07:15:59.682Z"},{"error":"SyntaxError: Unexpected token 'S', \"Session li\"... is not valid JSON\n    at JSON.parse (<anonymous>)\n    at file:///C:/Users/Leonovo/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:747:9932\n    at Q (file:///C:/Users/Leonovo/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:713:13287)\n    at zy2 (file:///C:/Users/Leonovo/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1046:37066)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-09-30T07:15:59.685Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"This request would exceed your account's rate limit. Please try again later.\"},\"request_id\":\"req_011CTeB5cqAth6AuM1GFBZ6V\"}\n    at B4.generate (file:///C:/Users/Leonovo/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:895:21164)\n    at yP.makeStatusError (file:///C:/Users/Leonovo/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1034:2131)\n    at yP.makeRequest (file:///C:/Users/Leonovo/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1034:5344)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async cG1.model (file:///C:/Users/Leonovo/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1120:39804)\n    at async cG1 (file:///C:/Users/Leonovo/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1120:27733)\n    at async w2B (file:///C:/Users/Leonovo/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1120:39958)\n    at async file:///C:/Users/Leonovo/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1120:34180\n    at async ZH0 (file:///C:/Users/Leonovo/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1120:9568)\n    at async r11 (file:///C:/Users/Leonovo/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1120:34150)","timestamp":"2025-09-30T07:16:00.228Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"This request would exceed your account's rate lim

Note: Error logs were truncated.

View original on GitHub ↗

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