paperclipai/paperclip · error

Ingest operation did not return an issue id; the dropped…

Error message

Ingest operation did not return an issue id; the dropped file could not be attached.

What it means

Error "Ingest operation did not return an issue id; the dropped file could not be attached." thrown in paperclipai/paperclip.

Solutions

  1. Retry the ingest; if it persists, check the ingest operation logs for why no issue id was returned.

When it happens

Trigger: Thrown at packages/plugins/plugin-llm-wiki/src/ui/issue-attachments.ts:14 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/3c851a91f625c375. Report an issue: GitHub.

Appendix: source

Thrown at packages/plugins/plugin-llm-wiki/src/ui/issue-attachments.ts:14

type FetchLike = (input: string, init: RequestInit) => Promise<Response>;

export type IngestSourceActionResult = {
  operation?: {
    issue?: {
      id?: unknown;
    } | null;
  } | null;
};

export function readIngestOperationIssueId(result: unknown): string {
  const issueId = (result as IngestSourceActionResult | null)?.operation?.issue?.id;
  if (typeof issueId === "string" && issueId.trim()) return issueId;
  throw new Error("Ingest operation did not return an issue id; the dropped file could not be attached.");
}

async function readUploadError(response: Response): Promise<string> {
  const body = await response.json().catch(() => null);
  if (body && typeof body === "object") {
    const error = (body as { error?: unknown; message?: unknown }).error;
    if (typeof error === "string" && error.trim()) return error;
    const message = (body as { error?: unknown; message?: unknown }).message;
    if (typeof message === "string" && message.trim()) return message;
  }
  return `Attachment upload failed with HTTP ${response.status}.`;
}

export async function uploadIssueAttachmentFile(input: {
  companyId: string;
  issueId: string;
  file: File;
  fetchImpl?: FetchLike;

View on GitHub (pinned to 120ae5428f)