diegosouzapw/OmniRoute · error · Error
No asset for /
Error message
No asset for ${platform}/${arch} What it means
Asset-availability guard in downloadRelease: the release exists, but its assets list contains no archive named CLIProxyAPI_<version>_<platform>_<arch><ext> for the detected (or passed) platform/arch pair. The project simply didn't publish a build for that combination (e.g. linux/arm64 missing).
Solutions
- Choose a version that ships an asset for this platform/arch
- Check the release page for the supported matrix
- Request a build for the missing combination
Defensive patterns
Strategy: fallback
When it happens
Trigger: Thrown at src/lib/versionManager/binaryManager.ts:151 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/444cc9428e81e4c2.
Report an issue: GitHub.
Appendix: source
Thrown at src/lib/versionManager/binaryManager.ts:151
}
export async function downloadRelease(
version: string,
targetDir: string,
signal?: AbortSignal,
// Optional pre-detected target: lets a top-level orchestrator (installVersion)
// read the runtime platform/arch exactly once and pass the value down instead of
// this function independently re-reading os.platform()/os.arch() (#10244/#10293).
target?: { platform: Platform; arch: Arch }
): Promise<string> {
const release = await getReleaseByVersion(version);
if (!release) throw new Error(`Version ${version} not found`);
const { platform, arch } = target || getTargetPlatform();
const ext = platform === "windows" ? ".zip" : ".tar.gz";
const assetName = `CLIProxyAPI_${release.version}_${platform}_${arch}${ext}`;
const asset = release.assets.find((a) => a.name === assetName);
if (!asset) throw new Error(`No asset for ${platform}/${arch}`);
const versionDir = path.join(targetDir, `cliproxyapi-${version}`);
await fs.mkdir(versionDir, { recursive: true });
const archivePath = path.join(versionDir, assetName);
await downloadFile(asset.url, archivePath, signal);
const checksums = await getChecksums(version);
if (checksums.size > 0) {
const expected = checksums.get(assetName);
if (expected) {
const valid = await verifyChecksum(archivePath, expected);
if (!valid) {
await fs.unlink(archivePath);
throw new Error(`SHA256 checksum mismatch for ${assetName}`);
}
}
}View on GitHub (pinned to a179ffed5b)