claude-code - 💡(How to fix) Fix [Bug] Anthropic API Error: HTTP 500 Server Error [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#48639Fetched 2026-04-16 06:54:57
View on GitHub
Comments
1
Participants
2
Timeline
9
Reactions
0
Timeline (top)
labeled ×7closed ×1commented ×1

Error Message

[ { "error": "Error: ENOENT: no such file or directory, unlink 'C:\<USER>\AppData\Local\Temp\claude\<RANDOM_ID>\tasks\<FILE_ID>.output'", "timestamp": "2026-05-16T13:13:09.256Z" }, { "error": "MaxFileReadTokenExceededError: File content (46059 tokens) exceeds maximum allowed tokens (25000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.", "timestamp": "2026-05-16T13:14:20.406Z" }, { "error": "Error: ENOENT: no such file or directory, unlink 'C:\<USER>\AppData\Local\Temp\claude\<RANDOM_ID>\tasks\<FILE_ID>.output'", "timestamp": "2026-05-16T13:19:34.574Z" }, { "error": "Error: ENOENT: no such file or directory, unlink 'C:\<USER>\AppData\Local\Temp\claude\<RANDOM_ID>\tasks\<FILE_ID>.output'", "timestamp": "2026-05-16T13:19:38.744Z" }, { "error": "MaxFileReadTokenExceededError: File content (40098 tokens) exceeds maximum allowed tokens (25000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.", "timestamp": "2026-05-16T13:19:48.320Z" }, { "error": "MaxFileReadTokenExceededError: File content (46059 tokens) exceeds maximum allowed tokens (25000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.", "timestamp": "2026-05-16T13:19:58.586Z" }, { "error": "Error: 1P event logging: 25 events failed to export (code=ECONNABORTED, timeout of 10000ms exceeded)", "timestamp": "2026-05-16T13:42:58.357Z" }, { "error": "Error: Failed to export 25 events (code=ECONNABORTED, timeout of 10000ms exceeded)", "timestamp": "2026-05-16T13:42:58.357Z" } ]

Code Example

[
  {
    "error": "Error: ENOENT: no such file or directory, unlink 'C:\\<USER>\\AppData\\Local\\Temp\\claude\\<RANDOM_ID>\\tasks\\<FILE_ID>.output'",
    "timestamp": "2026-05-16T13:13:09.256Z"
  },
  {
    "error": "MaxFileReadTokenExceededError: File content (46059 tokens) exceeds maximum allowed tokens (25000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.",
    "timestamp": "2026-05-16T13:14:20.406Z"
  },
  {
    "error": "Error: ENOENT: no such file or directory, unlink 'C:\\<USER>\\AppData\\Local\\Temp\\claude\\<RANDOM_ID>\\tasks\\<FILE_ID>.output'",
    "timestamp": "2026-05-16T13:19:34.574Z"
  },
  {
    "error": "Error: ENOENT: no such file or directory, unlink 'C:\\<USER>\\AppData\\Local\\Temp\\claude\\<RANDOM_ID>\\tasks\\<FILE_ID>.output'",
    "timestamp": "2026-05-16T13:19:38.744Z"
  },
  {
    "error": "MaxFileReadTokenExceededError: File content (40098 tokens) exceeds maximum allowed tokens (25000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.",
    "timestamp": "2026-05-16T13:19:48.320Z"
  },
  {
    "error": "MaxFileReadTokenExceededError: File content (46059 tokens) exceeds maximum allowed tokens (25000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.",
    "timestamp": "2026-05-16T13:19:58.586Z"
  },
  {
    "error": "Error: 1P event logging: 25 events failed to export (code=ECONNABORTED, timeout of 10000ms exceeded)",
    "timestamp": "2026-05-16T13:42:58.357Z"
  },
  {
    "error": "Error: Failed to export 25 events (code=ECONNABORTED, timeout of 10000ms exceeded)",
    "timestamp": "2026-05-16T13:42:58.357Z"
  }
]
RAW_BUFFERClick to expand / collapse

Bug Description faing an error 500 with status code API is down

Environment Info

  • Platform: win32
  • Terminal: null
  • Version: 2.1.96
  • Feedback ID: fba954a6-1826-4115-a27c-a0b849c0f196

Errors

[
  {
    "error": "Error: ENOENT: no such file or directory, unlink 'C:\\<USER>\\AppData\\Local\\Temp\\claude\\<RANDOM_ID>\\tasks\\<FILE_ID>.output'",
    "timestamp": "2026-05-16T13:13:09.256Z"
  },
  {
    "error": "MaxFileReadTokenExceededError: File content (46059 tokens) exceeds maximum allowed tokens (25000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.",
    "timestamp": "2026-05-16T13:14:20.406Z"
  },
  {
    "error": "Error: ENOENT: no such file or directory, unlink 'C:\\<USER>\\AppData\\Local\\Temp\\claude\\<RANDOM_ID>\\tasks\\<FILE_ID>.output'",
    "timestamp": "2026-05-16T13:19:34.574Z"
  },
  {
    "error": "Error: ENOENT: no such file or directory, unlink 'C:\\<USER>\\AppData\\Local\\Temp\\claude\\<RANDOM_ID>\\tasks\\<FILE_ID>.output'",
    "timestamp": "2026-05-16T13:19:38.744Z"
  },
  {
    "error": "MaxFileReadTokenExceededError: File content (40098 tokens) exceeds maximum allowed tokens (25000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.",
    "timestamp": "2026-05-16T13:19:48.320Z"
  },
  {
    "error": "MaxFileReadTokenExceededError: File content (46059 tokens) exceeds maximum allowed tokens (25000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.",
    "timestamp": "2026-05-16T13:19:58.586Z"
  },
  {
    "error": "Error: 1P event logging: 25 events failed to export (code=ECONNABORTED, timeout of 10000ms exceeded)",
    "timestamp": "2026-05-16T13:42:58.357Z"
  },
  {
    "error": "Error: Failed to export 25 events (code=ECONNABORTED, timeout of 10000ms exceeded)",
    "timestamp": "2026-05-16T13:42:58.357Z"
  }
]

extent analysis

TL;DR

Try switching to a different model or waiting for a moment before retrying the API request to potentially mitigate the "Service is busy" error.

Guidance

  • The error message "Service is busy — try again in a moment, or switch to a different model" suggests that the issue might be temporary and related to server load or availability.
  • The provided error stacktrace indicates an AggregateError at a specific line in the cli.js file, which could be related to the API request or server response handling.
  • To verify the issue, try reproducing the error with a different model or at a different time to see if the problem persists.
  • Consider checking the API documentation or support resources for any known issues or maintenance schedules that might be causing the error.

Notes

The root cause of the issue is unclear, and without more information about the API or server, it's difficult to provide a definitive solution. The suggestions above are based on the error messages and stacktrace provided.

Recommendation

Apply workaround: Try switching to a different model or waiting for a moment before retrying the API request, as this might help mitigate the "Service is busy" error.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING