{"record":{"id":"570bfcb93b5e46b1","repo":"paperclipai/paperclip","slug":"attachment-upload-failed-with-http-response-stat","errorCode":null,"errorMessage":"Attachment upload failed with HTTP ${response.status}.","messagePattern":"Attachment upload failed with HTTP (.+?)\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/plugins/plugin-llm-wiki/src/ui/issue-attachments.ts","lineNumber":46,"sourceCode":"export async function uploadIssueAttachmentFile(input: {\n  companyId: string;\n  issueId: string;\n  file: File;\n  fetchImpl?: FetchLike;\n}): Promise<unknown> {\n  const fetchImpl = input.fetchImpl ?? fetch;\n  const form = new FormData();\n  form.append(\"file\", input.file);\n  const response = await fetchImpl(\n    `/api/companies/${encodeURIComponent(input.companyId)}/issues/${encodeURIComponent(input.issueId)}/attachments`,\n    {\n      method: \"POST\",\n      credentials: \"include\",\n      body: form,\n    },\n  );\n  if (!response.ok) {\n    throw new Error(await readUploadError(response));\n  }\n  return response.json();\n}\n","sourceCodeStart":28,"sourceCodeEnd":50,"githubUrl":"https://github.com/paperclipai/paperclip/blob/120ae5428fa29bee300bcf806491cd4d965fbb7c/packages/plugins/plugin-llm-wiki/src/ui/issue-attachments.ts#L28-L50","documentation":"Error \"Attachment upload failed with HTTP ${response.status}.\" thrown in paperclipai/paperclip.","triggerScenarios":"Thrown at packages/plugins/plugin-llm-wiki/src/ui/issue-attachments.ts:46 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the upload endpoint status and server logs; verify authentication and file size limits, then retry."],"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-14T00:17:10.932Z"}