coleam00/Archon · error

Marketplace fetch failed: HTTP ${String(res.status)} from ${

Error message

Marketplace fetch failed: HTTP ${String(res.status)} from ${url}

What it means

Error "Marketplace fetch failed: HTTP ${String(res.status)} from ${url}" thrown in coleam00/Archon.

Source

Thrown at packages/cli/src/commands/workflow.ts:4996

  sha: string;
  tags: string[];
  archonVersionCompat: string;
  featured?: boolean;
}

const DEFAULT_MARKETPLACE_URL = 'https://archon.diy/workflows.json';

async function fetchMarketplace(): Promise<MarketplaceEntryJson[]> {
  const url = process.env.ARCHON_MARKETPLACE_URL ?? DEFAULT_MARKETPLACE_URL;
  let res: Response;
  try {
    res = await fetch(url);
  } catch (error) {
    const err = error as Error;
    throw new Error(`Cannot reach marketplace at ${url}: ${err.message}`);
  }
  if (!res.ok) {
    throw new Error(`Marketplace fetch failed: HTTP ${String(res.status)} from ${url}`);
  }
  const raw: unknown = await res.json();
  if (!Array.isArray(raw)) {
    throw new Error('Unexpected marketplace response format (expected array)');
  }
  for (const item of raw) {
    if (
      typeof item !== 'object' ||
      item === null ||
      typeof (item as Record<string, unknown>).slug !== 'string' ||
      typeof (item as Record<string, unknown>).sourceUrl !== 'string' ||
      !Array.isArray((item as Record<string, unknown>).tags)
    ) {
      throw new Error('Marketplace response contains invalid entries');
    }
  }
  return raw as MarketplaceEntryJson[];
}

View on GitHub (pinned to 0773b97458)

When it happens

Trigger: Thrown at packages/cli/src/commands/workflow.ts:4996 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of coleam00/Archon@0773b97458 (2026-09-01). Data as JSON: /api/errors/6d8e5050bb985698. Report an issue: GitHub.