paperclipai/paperclip · error
Catalog team not found
Error message
Catalog team not found: ${catalogRef} What it means
The catalog team ref lookup GET /api/teams/catalog/ref returned null, so no catalog team matches the given reference.
Solutions
- Verify the catalog reference; list catalog teams and use a valid slug or key.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at cli/src/commands/client/teams.ts:328 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of paperclipai/paperclip@120ae5428f (2026-08-18).
Data as JSON: /api/errors/e7ec593769fc70da.
Report an issue: GitHub.
Appendix: source
Thrown at cli/src/commands/client/teams.ts:328
return buildCatalogTeamStatusRow(team, installedTeam ?? null);
});
for (const installedTeam of installedByCatalogId.values()) {
if (installedTeam.present) continue;
rows.push(buildMissingInstalledTeamStatusRow(installedTeam));
}
return rows;
}
async function getCatalogTeam(ctx: ResolvedClientContext, catalogRef: string): Promise<CatalogTeam> {
const ref = catalogRef.trim();
if (!ref) {
throw new Error("Catalog team reference is required.");
}
const detail = await ctx.api.get<CatalogTeam>(`/api/teams/catalog/ref?ref=${encodeURIComponent(ref)}`);
if (!detail) {
throw new Error(`Catalog team not found: ${catalogRef}`);
}
return detail;
}
async function getCatalogTeamFile(
ctx: ResolvedClientContext,
catalogRef: string,
filePath: string,
): Promise<{ content: string } | null> {
const ref = catalogRef.trim();
const path = filePath.trim();
if (!ref) throw new Error("Catalog team reference is required.");
if (!path) throw new Error("Catalog team file path is required.");
const params = new URLSearchParams({ ref, path });
return ctx.api.get(`/api/teams/catalog/ref/files?${params.toString()}`);
}
function catalogTeamCompanyPath(companyId: string | undefined, catalogRef: string, action: "preview" | "install") {View on GitHub (pinned to 120ae5428f)