paperclipai/paperclip · error
Attachment not found
Error message
Attachment not found
What it means
404 from attachment deletion/lookup routes. Fires when svc.getAttachmentById returns no attachment for the id (or the actor cannot access it); getAccessibleResource converts the null lookup into this 404 before any mutation.
Source
Thrown at server/src/routes/issues.ts:13828
if (
effectiveMoveToTodoRequested &&
(isClosed || (isBlocked && !hasUnresolvedFirstClassBlockers) || shouldResumeInProgressScheduledRetry)
) {
scheduledRetrySupersededByComment = shouldResumeInProgressScheduledRetry && issue.status === "in_progress";
cancelledScheduledRetryRunId = scheduledRetrySupersededByComment
? await cancelScheduledRetrySupersededByComment({
scheduledRetryRunId: scheduledRetryForHumanComment?.runId,
issue,
actor,
})
: null;
const reopenedIssue = await svc.update(id, { status: "todo" });
if (!reopenedIssue) {
res.status(404).json({ error: "Issue not found" });
return;
}
reopened = isClosed || (isBlocked && !hasUnresolvedFirstClassBlockers);
reopenFromStatus = reopened ? issue.status : null;
currentIssue = reopenedIssue;
await logActivity(db, {
companyId: currentIssue.companyId,
actorType: actor.actorType,
actorId: actor.actorId,
agentId: actor.agentId,
runId: actor.runId,
agentApiKeyId: actor.agentApiKeyId,
action: "issue.updated",
entityType: "issue",
entityId: currentIssue.id,
details: {
status: "todo",
...(reopened ? { reopened: true, reopenedFrom: reopenFromStatus } : {}),
...(scheduledRetrySupersededByComment
? {
scheduledRetrySupersededByComment: true,View on GitHub (pinned to 01ad858492)
Solutions
- Verify the id in the request path or body refers to an existing record in this company; re-list the parent collection to get a valid id.
- Check that the record was not deleted or archived, and that the request is scoped to the correct companyId.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at server/src/routes/issues.ts:12800 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of paperclipai/paperclip@01ad858492 (2026-08-18).
Data as JSON: /api/errors/87426c966a6e5b9d.
Report an issue: GitHub.