{"record":{"id":"3c851a91f625c375","repo":"paperclipai/paperclip","slug":"ingest-operation-did-not-return-an-issue-id-the-d","errorCode":null,"errorMessage":"Ingest operation did not return an issue id; the dropped file could not be attached.","messagePattern":"Ingest operation did not return an issue id; the dropped file could not be attached\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/plugins/plugin-llm-wiki/src/ui/issue-attachments.ts","lineNumber":14,"sourceCode":"type FetchLike = (input: string, init: RequestInit) => Promise<Response>;\n\nexport type IngestSourceActionResult = {\n  operation?: {\n    issue?: {\n      id?: unknown;\n    } | null;\n  } | null;\n};\n\nexport function readIngestOperationIssueId(result: unknown): string {\n  const issueId = (result as IngestSourceActionResult | null)?.operation?.issue?.id;\n  if (typeof issueId === \"string\" && issueId.trim()) return issueId;\n  throw new Error(\"Ingest operation did not return an issue id; the dropped file could not be attached.\");\n}\n\nasync function readUploadError(response: Response): Promise<string> {\n  const body = await response.json().catch(() => null);\n  if (body && typeof body === \"object\") {\n    const error = (body as { error?: unknown; message?: unknown }).error;\n    if (typeof error === \"string\" && error.trim()) return error;\n    const message = (body as { error?: unknown; message?: unknown }).message;\n    if (typeof message === \"string\" && message.trim()) return message;\n  }\n  return `Attachment upload failed with HTTP ${response.status}.`;\n}\n\nexport async function uploadIssueAttachmentFile(input: {\n  companyId: string;\n  issueId: string;\n  file: File;\n  fetchImpl?: FetchLike;","sourceCodeStart":1,"sourceCodeEnd":32,"githubUrl":"https://github.com/paperclipai/paperclip/blob/120ae5428fa29bee300bcf806491cd4d965fbb7c/packages/plugins/plugin-llm-wiki/src/ui/issue-attachments.ts#L1-L32","documentation":"Error \"Ingest operation did not return an issue id; the dropped file could not be attached.\" thrown in paperclipai/paperclip.","triggerScenarios":"Thrown at packages/plugins/plugin-llm-wiki/src/ui/issue-attachments.ts:14 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry the ingest; if it persists, check the ingest operation logs for why no issue id was returned."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"120ae5428fa29bee300bcf806491cd4d965fbb7c","analyzedAt":"2026-08-18T22:49:45.177Z","contentChangedAt":"2026-08-18T22:49:45.177Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}