paperclipai/paperclip · error
operationType must be ingest, query, lint, file-as-page…
Error message
operationType must be ingest, query, lint, file-as-page, index, distill, or backfill
What it means
Error "operationType must be ingest, query, lint, file-as-page, index, distill, or backfill" thrown in paperclipai/paperclip.
Solutions
- Set operationType to one of: ingest, query, lint, file-as-page, index, distill, backfill.
When it happens
Trigger: Thrown at packages/plugins/plugin-llm-wiki/src/worker.ts:290 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/400a384759fdf1c2.
Report an issue: GitHub.
Appendix: source
Thrown at packages/plugins/plugin-llm-wiki/src/worker.ts:290
return archiveSpace(ctx, {
companyId: readCompanyIdFromParams(params),
wikiId: stringField(params.wikiId),
spaceSlug: stringField(params.spaceSlug),
});
});
ctx.actions.register("create-operation", async (params) => {
const operationType = stringField(params.operationType);
if (
operationType !== "ingest" &&
operationType !== "query" &&
operationType !== "lint" &&
operationType !== "file-as-page" &&
operationType !== "index" &&
operationType !== "distill" &&
operationType !== "backfill"
) {
throw new Error("operationType must be ingest, query, lint, file-as-page, index, distill, or backfill");
}
return createOperationIssue(ctx, {
companyId: readCompanyIdFromParams(params),
wikiId: stringField(params.wikiId),
spaceSlug: stringField(params.spaceSlug),
operationType,
title: stringField(params.title),
prompt: stringField(params.prompt),
});
});
ctx.actions.register("capture-source", async (params) => {
return captureWikiSource(ctx, {
companyId: readCompanyIdFromParams(params),
wikiId: stringField(params.wikiId),
spaceSlug: stringField(params.spaceSlug),
sourceType: stringField(params.sourceType),
title: stringField(params.title),View on GitHub (pinned to 5716fe907e)