oven-sh/bun · error · Error

Failed to download ${url}: ${response.statusText}

Error message

Failed to download ${url}: ${response.statusText}

What it means

Error "Failed to download ${url}: ${response.statusText}" thrown in oven-sh/bun.

Source

Thrown at packages/bun-debug-adapter-protocol/scripts/generate-protocol.ts:173

  return body;
}

function toMethod(name: string): string {
  return `${name.substring(0, 1).toLowerCase()}${name.substring(1)}`;
}

function toComment(description?: string): string {
  if (!description) {
    return "";
  }
  const lines = ["/**", ...description.split("\n").map(line => ` * ${line.trim()}`), "*/"];
  return lines.join("\n");
}

async function download<T>(url: string | URL): Promise<T> {
  const response = await fetch(url);
  if (!response.ok) {
    throw new Error(`Failed to download ${url}: ${response.statusText}`);
  }
  return response.json();
}

View on GitHub (pinned to 8c5296ac45)

When it happens

Trigger: Thrown at packages/bun-debug-adapter-protocol/scripts/generate-protocol.ts:173 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of oven-sh/bun@8c5296ac45 (2026-08-16). Data as JSON: /api/errors/3173dc5f7756cb88. Report an issue: GitHub.