claude-code - 💡(How to fix) Fix After my session was suspended last night due to rate... [2 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#48572Fetched 2026-04-16 06:56:25
View on GitHub
Comments
2
Participants
2
Timeline
7
Reactions
0
Author
Timeline (top)
labeled ×5commented ×2

Error Message

Running scheduled task (Apr 15 7:42am)
⎿  API Error: 500 {"type":"error","error":{"type":"api_error","message":"Internal server
error"},"request_id":"req_011Ca5jTmd1zj8QcPuycHGhD"}

Code Example

Running scheduled task (Apr 15 7:42am)                                                                                               
  ⎿  API Error: 500 {"type":"error","error":{"type":"api_error","message":"Internal server                                           
     error"},"request_id":"req_011Ca5jTmd1zj8QcPuycHGhD"}

---

[{"error":"SyntaxError: JSON Parse error: Unrecognized token '/'\n    at <parse> (:0)\n    at parse (unknown)\n    at Wx6 (/$bunfs/root/src/entrypoints/cli.js:165:10030)\n    at _ (/$bunfs/root/src/entrypoints/cli.js:129:18190)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:167:1186)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:17181:347)","timestamp":"2026-04-14T17:46:33.834Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /home/lbrack/.local/share/claude/versions/2.1.107 (expected in multi-process scenarios)\n    at Id$ (/$bunfs/root/src/entrypoints/cli.js:2336:2153)\n    at ct8 (/$bunfs/root/src/entrypoints/cli.js:2336:1233)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T17:46:33.873Z"},{"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_011Ca48iaD1ejs2ysw7HNvX7\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52441)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T18:26:06.122Z"},{"error":"MaxFileReadTokenExceededError: File content (11402 tokens) exceeds maximum allowed tokens (10000). 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 fw7 (/$bunfs/root/src/entrypoints/cli.js:4406:12021)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T22:57:54.519Z"},{"error":"MaxFileReadTokenExceededError: File content (19985 tokens) exceeds maximum allowed tokens (10000). 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 fw7 (/$bunfs/root/src/entrypoints/cli.js:4406:12021)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T22:57:54.842Z"},{"error":"MaxFileReadTokenExceededError: File content (11402 tokens) exceeds maximum allowed tokens (10000). 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 fw7 (/$bunfs/root/src/entrypoints/cli.js:4406:12021)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T22:57:57.705Z"},{"error":"MaxFileReadTokenExceededError: File content (19985 tokens) exceeds maximum allowed tokens (10000). 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 fw7 (/$bunfs/root/src/entrypoints/cli.js:4406:12021)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T22:58:00.939Z"},{"error":"MaxFileReadTokenExceededError: File content (19985 tokens) exceeds maximum allowed tokens (10000). 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 fw7 (/$bunfs/root/src/entrypoints/cli.js:4406:12021)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T22:58:03.742Z"},{"error":"MaxFileReadTokenExceededError: File content (11402 tokens) exceeds maximum allowed tokens (10000). 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 fw7 (/$bunfs/root/src/entrypoints/cli.js:4406:12021)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T22:58:13.449Z"},{"error":"MaxFileReadTokenExceededError: File content (11387 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of
RAW_BUFFERClick to expand / collapse

Bug Description After my session was suspended last night due to rate limit, I woke up the agent with the following prompt "Yes, everybdy is listening for your directive". I have 6 other agents that collaborates with this one (the architect/pm). The only prompt I gave them was "Please resume monitoring to be ready to jump into action". They currently collaborate via an MCP over a slack channel (more of a signalling channel so the data exchange over that channel is very terse). As I am checking the claude.ai console, I see my current session jump at 74% - this makes absolute no sense to me. I had a very similar problem a 2 weeks ago (and got a mysterious $100 credit from Anthropic). Last week was back to normal and here we are again. Hope this can get resolved once and for all or at least have a meaningful explaination as to what causes this so I can fix it if it is on my end. For the record, I did a thorough review of the MCP server to make sure that we were not loading to much history (basically we load the last 10 minutes or so)

P.S.: Right after I submitted this bug report, I received:

Running scheduled task (Apr 15 7:42am)                                                                                               
  ⎿  API Error: 500 {"type":"error","error":{"type":"api_error","message":"Internal server                                           
     error"},"request_id":"req_011Ca5jTmd1zj8QcPuycHGhD"}

Environment Info

  • Platform: linux
  • Terminal: pycharm
  • Version: 2.1.107
  • Feedback ID: 9d34c2e1-b0d8-4a11-9928-5454cfd0d01f

Errors

[{"error":"SyntaxError: JSON Parse error: Unrecognized token '/'\n    at <parse> (:0)\n    at parse (unknown)\n    at Wx6 (/$bunfs/root/src/entrypoints/cli.js:165:10030)\n    at _ (/$bunfs/root/src/entrypoints/cli.js:129:18190)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:167:1186)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:17181:347)","timestamp":"2026-04-14T17:46:33.834Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /home/lbrack/.local/share/claude/versions/2.1.107 (expected in multi-process scenarios)\n    at Id$ (/$bunfs/root/src/entrypoints/cli.js:2336:2153)\n    at ct8 (/$bunfs/root/src/entrypoints/cli.js:2336:1233)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T17:46:33.873Z"},{"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_011Ca48iaD1ejs2ysw7HNvX7\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52441)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T18:26:06.122Z"},{"error":"MaxFileReadTokenExceededError: File content (11402 tokens) exceeds maximum allowed tokens (10000). 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 fw7 (/$bunfs/root/src/entrypoints/cli.js:4406:12021)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T22:57:54.519Z"},{"error":"MaxFileReadTokenExceededError: File content (19985 tokens) exceeds maximum allowed tokens (10000). 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 fw7 (/$bunfs/root/src/entrypoints/cli.js:4406:12021)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T22:57:54.842Z"},{"error":"MaxFileReadTokenExceededError: File content (11402 tokens) exceeds maximum allowed tokens (10000). 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 fw7 (/$bunfs/root/src/entrypoints/cli.js:4406:12021)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T22:57:57.705Z"},{"error":"MaxFileReadTokenExceededError: File content (19985 tokens) exceeds maximum allowed tokens (10000). 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 fw7 (/$bunfs/root/src/entrypoints/cli.js:4406:12021)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T22:58:00.939Z"},{"error":"MaxFileReadTokenExceededError: File content (19985 tokens) exceeds maximum allowed tokens (10000). 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 fw7 (/$bunfs/root/src/entrypoints/cli.js:4406:12021)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T22:58:03.742Z"},{"error":"MaxFileReadTokenExceededError: File content (11402 tokens) exceeds maximum allowed tokens (10000). 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 fw7 (/$bunfs/root/src/entrypoints/cli.js:4406:12021)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T22:58:13.449Z"},{"error":"MaxFileReadTokenExceededError: File content (11387 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of…

Note: Content was truncated.

extent analysis

TL;DR

The issue is likely related to exceeding rate limits or token limits, and a potential fix could involve optimizing the MCP server to reduce the amount of data exchanged or implementing a more efficient way to handle file content.

Guidance

  • Review the MCP server configuration to ensure it's not loading too much history, as the user has already done, but also consider optimizing the data exchange protocol to reduce the amount of data being sent.
  • Investigate the MaxFileReadTokenExceededError errors and consider implementing offset and limit parameters to read specific portions of the file, as suggested in the error message.
  • Check the rate limit error messages and consider implementing a delay or retry mechanism to handle rate limit errors.
  • Verify that the issue is not related to the Slack channel or the collaboration between agents, by testing the MCP server in isolation.

Example

No code example is provided as the issue is more related to configuration and optimization rather than a specific code snippet.

Notes

The issue seems to be related to exceeding limits, but the exact cause is unclear due to the truncated content. It's recommended to investigate the errors and optimize the MCP server configuration to reduce the amount of data exchanged.

Recommendation

Apply a workaround by optimizing the MCP server configuration and implementing a more efficient way to handle file content, as the root cause of the issue is unclear and may require further investigation.

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