claude-code - 💡(How to fix) Fix [Bug] Session limit consumed rapidly during API errors on quick refreshes [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#52869Fetched 2026-04-25 06:18:42
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
0
Author
Timeline (top)
labeled ×4commented ×1cross-referenced ×1

Error Message

[{"error":"Error: Executable not found in $PATH: "typescript-language-server"\n at spawn (unknown)\n at spawn (node:child_process:667:35)\n at spawn (node:child_process:14:39)\n at start (/$bunfs/root/src/entrypoints/cli.js:3156:20885)\n at w (/$bunfs/root/src/entrypoints/cli.js:3156:24868)\n at z (/$bunfs/root/src/entrypoints/cli.js:3156:30016)\n at f (/$bunfs/root/src/entrypoints/cli.js:3156:30353)\n at j (/$bunfs/root/src/entrypoints/cli.js:3156:30910)\n at call (/$bunfs/root/src/entrypoints/cli.js:4774:1378)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T13:33:41.502Z"},{"error":"Error: 429 {"type":"error","error":{"type":"rate_limit_error","message":"Rate limited"},"request_id":"req_011CaNgYL9guznJqVarjHYLT"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:52923)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T13:34:07.466Z"},{"error":"Error: 429 {"type":"error","error":{"type":"rate_limit_error","message":"Rate limited"},"request_id":"req_011CaNgZGaA5bgqKzfRQmBhm"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:52923)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T13:34:21.793Z"},{"error":"Error: 429 {"type":"error","error":{"type":"rate_limit_error","message":"Rate limited"},"request_id":"req_011CaNgZRd82QyJsEPMugf8K"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:52923)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T13:34:22.555Z"},{"error":"Error: 429 {"type":"error","error":{"type":"rate_limit_error","message":"Rate limited"},"request_id":"req_011CaNgZP1Mvr96GPK1n6kit"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:52923)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T13:34:22.951Z"},{"error":"Error: 429 {"type":"error","error":{"type":"rate_limit_error","message":"Rate limited"},"request_id":"req_011CaNgZXQdVxpkxsftB6FUa"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:52923)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T13:34:23.701Z"},{"error":"Error: 429 {"type":"error","error":{"type":"rate_limit_error","message":"Rate limited"},"request_id":"req_011CaNgZVHPWbLMdTx4GTVQR"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:52923)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T13:34:23.812Z"},{"error":"Error: 429 {"type":"error","error":{"type":"rate_limit_error","message":"Rate limited"},"request_id":"req_011CaNgZUqbWYX85ESraSCY7"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:52923)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T13:34:24.777Z"},{"error":"Error: 429 {"type":"error","error":{"type":"rate_limit_error","message":"Rate limited"},"request_id":"req_011CaNgZfVJPWsDANhF6SJKY"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:52923)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T13:34:25.877Z"},{"error":"Error: 429 {"type":"error","error":{"type":"rate_limit_error","message":"Rate limited"},"request_id":"req_011CaNgZfuMnzqdqoxXVXb4E"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:52923)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T13:34:25.895Z"},{"error":"Error: 429 {"type":"error","error":{"type":"rate_limit_error","message"…

Code Example

[{"error":"Error: Executable not found in $PATH: \"typescript-language-server\"\n    at spawn (unknown)\n    at spawn (node:child_process:667:35)\n    at spawn (node:child_process:14:39)\n    at start (/$bunfs/root/src/entrypoints/cli.js:3156:20885)\n    at w (/$bunfs/root/src/entrypoints/cli.js:3156:24868)\n    at z (/$bunfs/root/src/entrypoints/cli.js:3156:30016)\n    at f (/$bunfs/root/src/entrypoints/cli.js:3156:30353)\n    at j (/$bunfs/root/src/entrypoints/cli.js:3156:30910)\n    at call (/$bunfs/root/src/entrypoints/cli.js:4774:1378)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T13:33:41.502Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"Rate limited\"},\"request_id\":\"req_011CaNgYL9guznJqVarjHYLT\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52923)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T13:34:07.466Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"Rate limited\"},\"request_id\":\"req_011CaNgZGaA5bgqKzfRQmBhm\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52923)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T13:34:21.793Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"Rate limited\"},\"request_id\":\"req_011CaNgZRd82QyJsEPMugf8K\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52923)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T13:34:22.555Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"Rate limited\"},\"request_id\":\"req_011CaNgZP1Mvr96GPK1n6kit\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52923)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T13:34:22.951Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"Rate limited\"},\"request_id\":\"req_011CaNgZXQdVxpkxsftB6FUa\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52923)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T13:34:23.701Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"Rate limited\"},\"request_id\":\"req_011CaNgZVHPWbLMdTx4GTVQR\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52923)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T13:34:23.812Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"Rate limited\"},\"request_id\":\"req_011CaNgZUqbWYX85ESraSCY7\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52923)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T13:34:24.777Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"Rate limited\"},\"request_id\":\"req_011CaNgZfVJPWsDANhF6SJKY\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52923)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T13:34:25.877Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"Rate limited\"},\"request_id\":\"req_011CaNgZfuMnzqdqoxXVXb4E\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52923)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T13:34:25.895Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\"…
RAW_BUFFERClick to expand / collapse

Bug Description I only saw how my session limit was being consumed by 10% with each refresh I was doing quickly. How is that possible? At the same time I was getting errors from the API.

Environment Info

  • Platform: darwin
  • Terminal: WarpTerminal
  • Version: 2.1.112
  • Feedback ID: e43d029d-a45c-43a6-992d-6a5e85334788

Errors

[{"error":"Error: Executable not found in $PATH: \"typescript-language-server\"\n    at spawn (unknown)\n    at spawn (node:child_process:667:35)\n    at spawn (node:child_process:14:39)\n    at start (/$bunfs/root/src/entrypoints/cli.js:3156:20885)\n    at w (/$bunfs/root/src/entrypoints/cli.js:3156:24868)\n    at z (/$bunfs/root/src/entrypoints/cli.js:3156:30016)\n    at f (/$bunfs/root/src/entrypoints/cli.js:3156:30353)\n    at j (/$bunfs/root/src/entrypoints/cli.js:3156:30910)\n    at call (/$bunfs/root/src/entrypoints/cli.js:4774:1378)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T13:33:41.502Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"Rate limited\"},\"request_id\":\"req_011CaNgYL9guznJqVarjHYLT\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52923)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T13:34:07.466Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"Rate limited\"},\"request_id\":\"req_011CaNgZGaA5bgqKzfRQmBhm\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52923)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T13:34:21.793Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"Rate limited\"},\"request_id\":\"req_011CaNgZRd82QyJsEPMugf8K\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52923)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T13:34:22.555Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"Rate limited\"},\"request_id\":\"req_011CaNgZP1Mvr96GPK1n6kit\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52923)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T13:34:22.951Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"Rate limited\"},\"request_id\":\"req_011CaNgZXQdVxpkxsftB6FUa\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52923)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T13:34:23.701Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"Rate limited\"},\"request_id\":\"req_011CaNgZVHPWbLMdTx4GTVQR\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52923)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T13:34:23.812Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"Rate limited\"},\"request_id\":\"req_011CaNgZUqbWYX85ESraSCY7\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52923)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T13:34:24.777Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"Rate limited\"},\"request_id\":\"req_011CaNgZfVJPWsDANhF6SJKY\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52923)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T13:34:25.877Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"Rate limited\"},\"request_id\":\"req_011CaNgZfuMnzqdqoxXVXb4E\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52923)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T13:34:25.895Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\"…

Note: Content was truncated.

extent analysis

TL;DR

The issue is likely due to exceeding the rate limit of the API, causing a 429 error, and can be mitigated by reducing the frequency of requests.

Guidance

  • The error messages indicate a "rate_limit_error" with a 429 status code, suggesting that the API requests are exceeding the allowed limit.
  • To verify the issue, check the API documentation to determine the rate limit and adjust the request frequency accordingly.
  • Consider implementing a delay between requests or using a queue to manage the request volume.
  • Review the code to identify the source of the repeated requests and optimize it to reduce the number of requests made to the API.

Example

No code example is provided as the issue does not include specific code snippets.

Notes

The provided error messages are truncated, which may limit the ability to provide a comprehensive solution. Additionally, the root cause of the repeated requests is unclear, and further investigation may be necessary to identify and address the underlying issue.

Recommendation

Apply a workaround by reducing the frequency of requests to the API, as the issue is likely due to exceeding the rate limit. This can be achieved by implementing a delay between requests or optimizing the code to reduce the number of requests made to the API.

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

claude-code - 💡(How to fix) Fix [Bug] Session limit consumed rapidly during API errors on quick refreshes [1 comments, 2 participants]