claude-code - 💡(How to fix) Fix [Bug] Anthropic API Error: Model temporarily unavailable [1 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#49423Fetched 2026-04-17 08:41:37
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
0
Author
Participants
Timeline (top)
labeled ×4

Error Message

[{"error":"FileTooLargeError: File content (271.5KB) exceeds maximum allowed size (256KB). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n at WKH (/$bunfs/root/src/entrypoints/cli.js:1561:270)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T18:28:10.646Z"},{"error":"Error: EISDIR: illegal operation on a directory, read '/Users/bardzi/repos/personal/investment-system'\n at WKH (/$bunfs/root/src/entrypoints/cli.js:1561:144)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T18:28:40.269Z"}]

Code Example

[{"error":"FileTooLargeError: File content (271.5KB) exceeds maximum allowed size (256KB). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n    at WKH (/$bunfs/root/src/entrypoints/cli.js:1561:270)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T18:28:10.646Z"},{"error":"Error: EISDIR: illegal operation on a directory, read '/Users/bardzi/repos/personal/investment-system'\n    at WKH (/$bunfs/root/src/entrypoints/cli.js:1561:144)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T18:28:40.269Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description Error: claude-opus-4-6[1m] is temporarily unavailable

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.1.111
  • Feedback ID: a0514378-dcb2-4acf-91b4-806057ecdc22

Errors

[{"error":"FileTooLargeError: File content (271.5KB) exceeds maximum allowed size (256KB). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n    at WKH (/$bunfs/root/src/entrypoints/cli.js:1561:270)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T18:28:10.646Z"},{"error":"Error: EISDIR: illegal operation on a directory, read '/Users/bardzi/repos/personal/investment-system'\n    at WKH (/$bunfs/root/src/entrypoints/cli.js:1561:144)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T18:28:40.269Z"}]

extent analysis

TL;DR

The issue can be resolved by handling the FileTooLargeError and avoiding operations on directories.

Guidance

  • The FileTooLargeError occurs when the file size exceeds 256KB, so consider using offset and limit parameters to read specific portions of the file.
  • Verify that the file path is correct and the file is not a directory before attempting to read it.
  • Check the cli.js file at line 1561 to understand how file reading is handled and modify it if necessary to handle large files or directory operations.
  • Ensure that the investment-system path is not a directory and adjust the code accordingly to avoid the EISDIR error.

Example

No code example is provided as the issue does not contain sufficient information about the code structure.

Notes

The provided errors suggest that there are two separate issues: one related to file size and another related to attempting to read a directory. Resolving these issues may require modifications to the cli.js file.

Recommendation

Apply a workaround by modifying the code to handle large files and directory operations, as the issue seems to be related to the current implementation rather than a version-specific bug.

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