diegosouzapw/OmniRoute · error · Error
Version ${version} not found
Error message
Version ${version} not found What it means
Error "Version ${version} not found" thrown in diegosouzapw/OmniRoute.
Source
Thrown at src/lib/versionManager/binaryManager.ts:145
for (const name of candidates) {
if (fsSync.existsSync(path.join(/* turbopackIgnore: true */ dir, name))) {
return path.join(/* turbopackIgnore: true */ dir, name);
}
}
return null;
}
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);View on GitHub (pinned to a179ffed5b)
When it happens
Trigger: Thrown at src/lib/versionManager/binaryManager.ts:145 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/b2506a033212fd65.
Report an issue: GitHub.