coleam00/Archon · error
Unexpected marketplace response format (expected array)
Error message
Unexpected marketplace response format (expected array)
What it means
Error "Unexpected marketplace response format (expected array)" thrown in coleam00/Archon.
Source
Thrown at packages/cli/src/commands/workflow.ts:5000
}
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[];
}
export async function workflowSearchCommand(query?: string, json?: boolean): Promise<void> {
const entries = await fetchMarketplace();
View on GitHub (pinned to 0773b97458)
When it happens
Trigger: Thrown at packages/cli/src/commands/workflow.ts:5000 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/ca190304a340e93f.
Report an issue: GitHub.