oven-sh/bun · error

${path}: ${r.status} ${r.statusText}

Error message

${path}: ${r.status} ${r.statusText}

What it means

Error "${path}: ${r.status} ${r.statusText}" thrown in oven-sh/bun.

Source

Thrown at scripts/update-parallel-allowlist.mjs:43

const token = process.env.BUILDKITE_API_TOKEN || process.env.BUILDKITE_TOKEN;
if (!token) {
  console.error("BUILDKITE_API_TOKEN is required");
  process.exit(1);
}

const api = async path => {
  for (let attempt = 0; ; attempt++) {
    const r = await fetch(`https://api.buildkite.com/v2/organizations/${opts.org}/pipelines/${opts.pipeline}/${path}`, {
      headers: { Authorization: `Bearer ${token}` },
      signal: AbortSignal.timeout(60_000),
    });
    if (r.ok) return r;
    if ((r.status === 429 || r.status >= 500) && attempt < 8) {
      const backoff = Number(r.headers.get("retry-after")) * 1000 || 1000 * 2 ** attempt;
      await new Promise(resolve => setTimeout(resolve, backoff));
      continue;
    }
    throw new Error(`${path}: ${r.status} ${r.statusText}`);
  }
};

const isNodeStyle = p =>
  p.includes("js/node/test/parallel/") || p.includes("js/node/test/sequential/") || p.includes("js/bun/test/parallel/");
function listBunTestFiles() {
  const out = [];
  const walk = rel => {
    for (const entry of readdirSync(join(testDir, rel), { withFileTypes: true })) {
      const path = rel ? `${rel}/${entry.name}` : entry.name;
      if (/node_modules|node\.js/.test(rel) || /^\./.test(entry.name)) continue;
      if (entry.isDirectory()) walk(path);
      else if (/\.(c|m)?(j|t)sx?$/.test(entry.name) && /\.test|spec\./.test(entry.name) && !isNodeStyle(path)) {
        out.push(path);
      }
    }
  };
  walk("");

View on GitHub (pinned to 8c5296ac45)

When it happens

Trigger: Thrown at scripts/update-parallel-allowlist.mjs:43 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/2e170c36542b0b38. Report an issue: GitHub.