diegosouzapw/OmniRoute · error · Error

Tunnel download failed

Error message

Tunnel download failed (${response.status})

What it means

Download failure for the pinned openai/tunnel-client release asset: the HTTP response status was non-OK (embedded in the message). Transient network errors, proxies, or a removed release produce this; the URL is constructed from RELEASE_BASE and the platform asset name.

Solutions

  1. Retry the tunnel-client install after checking connectivity to the release host
  2. If 404, update OmniRoute so the pinned tunnel version matches available release assets
  3. Bypass or configure intercepting proxies that block the binary download
Defensive patterns

Strategy: retry

When it happens

Trigger: Thrown at open-sse/executors/chatgpt-web-codex/tunnelClient.ts:88 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of diegosouzapw/OmniRoute@a179ffed5b (2026-08-25). Data as JSON: /api/errors/fc473523eef4ec21. Report an issue: GitHub.

Appendix: source

Thrown at open-sse/executors/chatgpt-web-codex/tunnelClient.ts:88

  }
  return `tunnel-client-v${CHATGPT_WEB_CODEX_TUNNEL_VERSION}-${os}-${cpu}.zip`;
}

export function parseTunnelChecksum(text: string, asset: string): string {
  const entry = text
    .split(/\r?\n/)
    .map((line) => line.trim())
    .find((line) => line.endsWith(asset));
  const checksum = entry?.split(/\s+/)[0]?.toLowerCase();
  if (!checksum || !/^[a-f0-9]{64}$/.test(checksum)) {
    throw new Error(`SHA256SUMS.txt has no valid entry for ${asset}`);
  }
  return checksum;
}

async function download(url: string): Promise<Uint8Array> {
  const response = await fetch(url, { redirect: "follow" });
  if (!response.ok) throw new Error(`Tunnel download failed (${response.status})`);
  const declared = Number(response.headers.get("content-length") || "0");
  if (Number.isFinite(declared) && declared > MAX_DOWNLOAD_BYTES) {
    throw new Error("Tunnel download exceeds the size limit");
  }
  const bytes = new Uint8Array(await response.arrayBuffer());
  if (bytes.byteLength > MAX_DOWNLOAD_BYTES) {
    throw new Error("Tunnel download exceeds the size limit");
  }
  return bytes;
}

export function tunnelClientPaths() {
  const root = join(getConfigDir(), "tunnel-client");
  return {
    root,
    binary: join(root, process.platform === "win32" ? "tunnel-client.exe" : "tunnel-client"),
    manifest: join(root, "manifest.json"),
    profileDir: join(root, "profiles"),

View on GitHub (pinned to a179ffed5b)