claude-code - 💡(How to fix) Fix [Bug] Anthropic API Error: Stream idle timeout when copying/pasting links [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#48245Fetched 2026-04-15 06:29:06
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
0
Author
Timeline (top)
labeled ×5commented ×1

Error Message

[{"error":"Error: Failed to download binary from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/2.1.107/darwin-arm64/claude: Request failed with status code 429\n at mp1 (/$bunfs/root/src/entrypoints/cli.js:2332:7628)\n at async pn9 (/$bunfs/root/src/entrypoints/cli.js:2332:7718)\n at async cn9 (/$bunfs/root/src/entrypoints/cli.js:2332:14580)\n at async cp1 (/$bunfs/root/src/entrypoints/cli.js:2332:16848)\n at async Qn9 (/$bunfs/root/src/entrypoints/cli.js:2334:322)\n at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:8104:14285)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T06:11:40.507Z"},{"error":"AxiosError: Request failed with status code 429\n at JU (/$bunfs/root/src/entrypoints/cli.js:108:1194)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:113:12744)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:865:50)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/src/entrypoints/cli.js:115:2467)\n at async up1 (/$bunfs/root/src/entrypoints/cli.js:2332:5945)\n at async mp1 (/$bunfs/root/src/entrypoints/cli.js:2332:7256)\n at async pn9 (/$bunfs/root/src/entrypoints/cli.js:2332:7718)\n at async cn9 (/$bunfs/root/src/entrypoints/cli.js:2332:14580)\n at async cp1 (/$bunfs/root/src/entrypoints/cli.js:2332:16848)\n at async Qn9 (/$bunfs/root/src/entrypoints/cli.js:2334:322)\n at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:8104:14285)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T06:11:40.508Z"},{"error":"Error: Failed to download binary from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/2.1.107/darwin-arm64/claude: Request failed with status code 429\n at mp1 (/$bunfs/root/src/entrypoints/cli.js:2332:7628)\n at async pn9 (/$bunfs/root/src/entrypoints/cli.js:2332:7718)\n at async cn9 (/$bunfs/root/src/entrypoints/cli.js:2332:14580)\n at async cp1 (/$bunfs/root/src/entrypoints/cli.js:2332:16848)\n at async Qn9 (/$bunfs/root/src/entrypoints/cli.js:2334:322)\n at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:8104:14285)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T06:47:52.572Z"},{"error":"AxiosError: Request failed with status code 429\n at JU (/$bunfs/root/src/entrypoints/cli.js:108:1194)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:113:12744)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:865:50)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/src/entrypoints/cli.js:115:2467)\n at async up1 (/$bunfs/root/src/entrypoints/cli.js:2332:5945)\n at async mp1 (/$bunfs/root/src/entrypoints/cli.js:2332:7256)\n at async pn9 (/$bunfs/root/src/entrypoints/cli.js:2332:7718)\n at async cn9 (/$bunfs/root/src/entrypoints/cli.js:2332:14580)\n at async cp1 (/$bunfs/root/src/entrypoints/cli.js:2332:16848)\n at async Qn9 (/$bunfs/root/src/entrypoints/cli.js:2334:322)\n at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:8104:14285)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T06:47:52.572Z"},{"error":"Error: Failed to download binary from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/2.1.107/darwin-arm64/claude: The socket connection was closed unexpectedly. For more information, pass verbose: true in the second argument to fetch()\n at mp1 (/$bunfs/root/src/entrypoints/cli.js:2332:7628)\n at async pn9 (unknown)\n at async cn9 (unknown)\n at async cp1 (unknown)\n at async Qn9 (unknown)\n at unknown\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T08:11:14.570Z"},{"error":"Error: The socket connection was closed unexpectedly. For more information, pass verbose: true in the second argument to fetch()\n at from (/$bunfs/root/src/entrypoints/cli.js:105:7862)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:113:12521)\n at emitError (node:events:43:23)\n at emitErrorNT (internal:streams/destroy:88:12)\n at emitErrorCloseNT (internal:streams/destroy:69:14)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/src/entrypoints/cli.js:115:2467)\n at async up1 (unknown)\n at async mp1 (unknown)\n at async pn9 (unknown)\n at async cn9 (unknown)\n at async cp1 (unknown)\n at as…

Code Example

[{"error":"Error: Failed to download binary from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/2.1.107/darwin-arm64/claude: Request failed with status code 429\n    at mp1 (/$bunfs/root/src/entrypoints/cli.js:2332:7628)\n    at async pn9 (/$bunfs/root/src/entrypoints/cli.js:2332:7718)\n    at async cn9 (/$bunfs/root/src/entrypoints/cli.js:2332:14580)\n    at async cp1 (/$bunfs/root/src/entrypoints/cli.js:2332:16848)\n    at async Qn9 (/$bunfs/root/src/entrypoints/cli.js:2334:322)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:8104:14285)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T06:11:40.507Z"},{"error":"AxiosError: Request failed with status code 429\n    at JU (/$bunfs/root/src/entrypoints/cli.js:108:1194)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:113:12744)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:115:2467)\n    at async up1 (/$bunfs/root/src/entrypoints/cli.js:2332:5945)\n    at async mp1 (/$bunfs/root/src/entrypoints/cli.js:2332:7256)\n    at async pn9 (/$bunfs/root/src/entrypoints/cli.js:2332:7718)\n    at async cn9 (/$bunfs/root/src/entrypoints/cli.js:2332:14580)\n    at async cp1 (/$bunfs/root/src/entrypoints/cli.js:2332:16848)\n    at async Qn9 (/$bunfs/root/src/entrypoints/cli.js:2334:322)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:8104:14285)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T06:11:40.508Z"},{"error":"Error: Failed to download binary from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/2.1.107/darwin-arm64/claude: Request failed with status code 429\n    at mp1 (/$bunfs/root/src/entrypoints/cli.js:2332:7628)\n    at async pn9 (/$bunfs/root/src/entrypoints/cli.js:2332:7718)\n    at async cn9 (/$bunfs/root/src/entrypoints/cli.js:2332:14580)\n    at async cp1 (/$bunfs/root/src/entrypoints/cli.js:2332:16848)\n    at async Qn9 (/$bunfs/root/src/entrypoints/cli.js:2334:322)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:8104:14285)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T06:47:52.572Z"},{"error":"AxiosError: Request failed with status code 429\n    at JU (/$bunfs/root/src/entrypoints/cli.js:108:1194)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:113:12744)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:115:2467)\n    at async up1 (/$bunfs/root/src/entrypoints/cli.js:2332:5945)\n    at async mp1 (/$bunfs/root/src/entrypoints/cli.js:2332:7256)\n    at async pn9 (/$bunfs/root/src/entrypoints/cli.js:2332:7718)\n    at async cn9 (/$bunfs/root/src/entrypoints/cli.js:2332:14580)\n    at async cp1 (/$bunfs/root/src/entrypoints/cli.js:2332:16848)\n    at async Qn9 (/$bunfs/root/src/entrypoints/cli.js:2334:322)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:8104:14285)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T06:47:52.572Z"},{"error":"Error: Failed to download binary from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/2.1.107/darwin-arm64/claude: The socket connection was closed unexpectedly. For more information, pass `verbose: true` in the second argument to fetch()\n    at mp1 (/$bunfs/root/src/entrypoints/cli.js:2332:7628)\n    at async pn9 (unknown)\n    at async cn9 (unknown)\n    at async cp1 (unknown)\n    at async Qn9 (unknown)\n    at unknown\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T08:11:14.570Z"},{"error":"Error: The socket connection was closed unexpectedly. For more information, pass `verbose: true` in the second argument to fetch()\n    at from (/$bunfs/root/src/entrypoints/cli.js:105:7862)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:113:12521)\n    at emitError (node:events:43:23)\n    at emitErrorNT (internal:streams/destroy:88:12)\n    at emitErrorCloseNT (internal:streams/destroy:69:14)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:115:2467)\n    at async up1 (unknown)\n    at async mp1 (unknown)\n    at async pn9 (unknown)\n    at async cn9 (unknown)\n    at async cp1 (unknown)\n    at as
RAW_BUFFERClick to expand / collapse

Bug Description Ultraplan keeps facing API error: Stream idle timeout, cant copy and paste the link

Environment Info

Errors

[{"error":"Error: Failed to download binary from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/2.1.107/darwin-arm64/claude: Request failed with status code 429\n    at mp1 (/$bunfs/root/src/entrypoints/cli.js:2332:7628)\n    at async pn9 (/$bunfs/root/src/entrypoints/cli.js:2332:7718)\n    at async cn9 (/$bunfs/root/src/entrypoints/cli.js:2332:14580)\n    at async cp1 (/$bunfs/root/src/entrypoints/cli.js:2332:16848)\n    at async Qn9 (/$bunfs/root/src/entrypoints/cli.js:2334:322)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:8104:14285)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T06:11:40.507Z"},{"error":"AxiosError: Request failed with status code 429\n    at JU (/$bunfs/root/src/entrypoints/cli.js:108:1194)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:113:12744)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:115:2467)\n    at async up1 (/$bunfs/root/src/entrypoints/cli.js:2332:5945)\n    at async mp1 (/$bunfs/root/src/entrypoints/cli.js:2332:7256)\n    at async pn9 (/$bunfs/root/src/entrypoints/cli.js:2332:7718)\n    at async cn9 (/$bunfs/root/src/entrypoints/cli.js:2332:14580)\n    at async cp1 (/$bunfs/root/src/entrypoints/cli.js:2332:16848)\n    at async Qn9 (/$bunfs/root/src/entrypoints/cli.js:2334:322)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:8104:14285)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T06:11:40.508Z"},{"error":"Error: Failed to download binary from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/2.1.107/darwin-arm64/claude: Request failed with status code 429\n    at mp1 (/$bunfs/root/src/entrypoints/cli.js:2332:7628)\n    at async pn9 (/$bunfs/root/src/entrypoints/cli.js:2332:7718)\n    at async cn9 (/$bunfs/root/src/entrypoints/cli.js:2332:14580)\n    at async cp1 (/$bunfs/root/src/entrypoints/cli.js:2332:16848)\n    at async Qn9 (/$bunfs/root/src/entrypoints/cli.js:2334:322)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:8104:14285)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T06:47:52.572Z"},{"error":"AxiosError: Request failed with status code 429\n    at JU (/$bunfs/root/src/entrypoints/cli.js:108:1194)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:113:12744)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:115:2467)\n    at async up1 (/$bunfs/root/src/entrypoints/cli.js:2332:5945)\n    at async mp1 (/$bunfs/root/src/entrypoints/cli.js:2332:7256)\n    at async pn9 (/$bunfs/root/src/entrypoints/cli.js:2332:7718)\n    at async cn9 (/$bunfs/root/src/entrypoints/cli.js:2332:14580)\n    at async cp1 (/$bunfs/root/src/entrypoints/cli.js:2332:16848)\n    at async Qn9 (/$bunfs/root/src/entrypoints/cli.js:2334:322)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:8104:14285)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T06:47:52.572Z"},{"error":"Error: Failed to download binary from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/2.1.107/darwin-arm64/claude: The socket connection was closed unexpectedly. For more information, pass `verbose: true` in the second argument to fetch()\n    at mp1 (/$bunfs/root/src/entrypoints/cli.js:2332:7628)\n    at async pn9 (unknown)\n    at async cn9 (unknown)\n    at async cp1 (unknown)\n    at async Qn9 (unknown)\n    at unknown\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T08:11:14.570Z"},{"error":"Error: The socket connection was closed unexpectedly. For more information, pass `verbose: true` in the second argument to fetch()\n    at from (/$bunfs/root/src/entrypoints/cli.js:105:7862)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:113:12521)\n    at emitError (node:events:43:23)\n    at emitErrorNT (internal:streams/destroy:88:12)\n    at emitErrorCloseNT (internal:streams/destroy:69:14)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:115:2467)\n    at async up1 (unknown)\n    at async mp1 (unknown)\n    at async pn9 (unknown)\n    at async cn9 (unknown)\n    at async cp1 (unknown)\n    at as…

Note: Content was truncated.

extent analysis

TL;DR

The issue is likely due to rate limiting or connection issues, as indicated by the 429 status code and socket connection closure errors, and a potential workaround is to retry the request or adjust the request rate.

Guidance

  • The 429 status code in the error messages suggests that the request is being rate limited, which could be causing the failures.
  • The "socket connection was closed unexpectedly" errors may indicate a network or server-side issue, and passing verbose: true in the fetch() call could provide more information.
  • Consider implementing exponential backoff or retry logic to handle rate limiting and connection issues.
  • Verify the request rate and adjust it if necessary to avoid hitting rate limits.

Example

No specific code example can be provided without more context, but a general approach to handling rate limiting and connection issues might involve using a library like axios with retry logic:

const axios = require('axios');

const retry = (fn, retries = 3, delay = 500) => {
  return fn().catch((error) => {
    if (retries > 0) {
      return new Promise((resolve) => {
        setTimeout(() => {
          resolve(retry(fn, retries - 1, delay * 2));
        }, delay);
      });
    } else {
      throw error;
    }
  });
};

const fetchData = () => {
  return axios.get('https://example.com/data');
};

retry(fetchData).then((response) => {
  console.log(response.data);
}).catch((error) => {
  console.error(error);
});

Notes

The provided error messages and code snippets are truncated, which may limit the ability to provide a complete solution. Additionally, the root cause of the issue may be related to the specific implementation or configuration of the claude-code library or the Google Cloud Storage API.

Recommendation

Apply a workaround, such as implementing retry logic or adjusting the request rate, to mitigate the rate limiting and connection issues. This approach can help resolve the immediate issue while further investigation is conducted to determine the root cause.

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] Anthropic API Error: Stream idle timeout when copying/pasting links [1 comments, 2 participants]