paperclipai/paperclip · error
LLM Wiki space not found
Error message
LLM Wiki space not found: ${slug} What it means
Error "LLM Wiki space not found: ${slug}" thrown in paperclipai/paperclip.
Solutions
- Create the wiki space first or use the slug of an existing space.
When it happens
Trigger: Thrown at packages/plugins/plugin-llm-wiki/src/wiki/core.ts:1370 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of paperclipai/paperclip@5716fe907e (2026-08-18).
Data as JSON: /api/errors/eb1853c8b803a278.
Report an issue: GitHub.
Appendix: source
Thrown at packages/plugins/plugin-llm-wiki/src/wiki/core.ts:1369
return rows[0] ? wikiSpaceFromRow(rows[0]) : fallbackDefaultSpace({ companyId: input.companyId, wikiId });
}
export async function resolveSpace(ctx: PluginContext, input: SpaceInput): Promise<WikiSpace> {
const wikiId = normalizeWikiId(input.wikiId);
const slug = normalizeSpaceSlug(input.spaceSlug);
if (slug === DEFAULT_SPACE_SLUG) {
return ensureDefaultSpace(ctx, { companyId: input.companyId, wikiId });
}
const rows = await ctx.db.query<WikiSpaceRow>(
`SELECT id, company_id, wiki_id, slug, display_name, space_type, folder_mode, root_folder_key,
path_prefix, configured_root_path, access_scope, owner_user_id, owner_agent_id, team_key,
settings, status, created_at::text AS created_at, updated_at::text AS updated_at
FROM ${spaceTable(ctx)}
WHERE company_id = $1 AND wiki_id = $2 AND slug = $3 AND status <> 'archived'
LIMIT 1`,
[input.companyId, wikiId, slug],
);
if (!rows[0]) throw new Error(`LLM Wiki space not found: ${slug}`);
return wikiSpaceFromRow(rows[0]);
}
async function resolveSpaceAnyStatus(ctx: PluginContext, input: SpaceInput): Promise<WikiSpace> {
const wikiId = normalizeWikiId(input.wikiId);
const slug = normalizeSpaceSlug(input.spaceSlug);
if (slug === DEFAULT_SPACE_SLUG) {
return ensureDefaultSpace(ctx, { companyId: input.companyId, wikiId });
}
const rows = await ctx.db.query<WikiSpaceRow>(
`SELECT id, company_id, wiki_id, slug, display_name, space_type, folder_mode, root_folder_key,
path_prefix, configured_root_path, access_scope, owner_user_id, owner_agent_id, team_key,
settings, status, created_at::text AS created_at, updated_at::text AS updated_at
FROM ${spaceTable(ctx)}
WHERE company_id = $1 AND wiki_id = $2 AND slug = $3
LIMIT 1`,
[input.companyId, wikiId, slug],
);View on GitHub (pinned to 5716fe907e)