{"record":{"id":"da952ddef7d13d98","repo":"paperclipai/paperclip","slug":"invalid-document-key","errorCode":null,"errorMessage":"Invalid document key","messagePattern":"Invalid document key","errorType":"http","errorClass":null,"httpStatus":400,"severity":"error","filePath":"server/src/routes/issues.ts","lineNumber":7412,"sourceCode":"      productivityReview,\n      referenceSummary,\n      successfulRunHandoffStates,\n      scheduledRetry,\n      activeRecoveryAction,\n      linkedCases,\n      inboxArchiveFields,\n    ] = await Promise.all([\n      resolveIssueProjectAndGoal(issue),\n      svc.getAncestors(issue.id),\n      svc.findMentionedProjectIds(issue.id, { includeCommentBodies: false }),\n      documentsSvc.getIssueDocumentPayload(issue),\n      svc.getRelationSummaries(issue.id),\n      svc.listBlockerAttention(issue.companyId, [issue]).then((map) => map.get(issue.id) ?? null),\n      svc.listReviewAttention(issue.companyId, [issue]).then((map) => map.get(issue.id) ?? null),\n      svc.listProductivityReviews(issue.companyId, [issue.id]).then((map) => map.get(issue.id) ?? null),\n      issueReferencesSvc.listIssueReferenceSummary(issue.id),\n      listSuccessfulRunHandoffStates(db, issue.companyId, [issue.id]),\n      svc.getCurrentScheduledRetry(issue.id),\n      recoveryActionsSvc.getActiveForIssue(issue.companyId, issue.id),\n      listIssueLinkedCases(db, issue.companyId, issue.id),\n      inboxArchiveFieldsPromise,\n    ]);\n    const recoveryActionsByRelationIssue = await relationRecoveryActionMap(\n      recoveryActionsSvc,\n      issue.companyId,\n      relations,\n    );\n    const relationsWithRecoveryActions = withRecoveryActionsOnRelationSummaries(\n      relations,\n      recoveryActionsByRelationIssue,\n    );\n    const revalidatedActiveRecoveryAction = await revalidateActiveSourceRecoveryForRead({\n      issue,\n      trigger: \"read_projection\",\n      actor: getActorInfo(req),\n      activeRecoveryAction,","sourceCodeStart":7394,"sourceCodeEnd":7430,"githubUrl":"https://github.com/paperclipai/paperclip/blob/01ad8584922b5d85292b1723cae71fa0d9b07a19/server/src/routes/issues.ts#L7394-L7430","documentation":"Error from GET /issues/:id/documents/:key: the requested document key does not match any document stored on the issue, so the key is invalid for that issue.","triggerScenarios":"Thrown at server/src/routes/issues.ts:6968 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix the offending parameter to satisfy the constraint stated in the error message (type, range, or allowed values), then retry.","Refer to the route's request validation in the named file and the shared validators for the accepted format."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"01ad8584922b5d85292b1723cae71fa0d9b07a19","analyzedAt":"2026-08-18T22:49:45.177Z","contentChangedAt":"2026-08-18T22:49:45.177Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}