{"record":{"id":"88e54ea55cef5b0d","repo":"paperclipai/paperclip","slug":"comment-not-found","errorCode":null,"errorMessage":"Comment not found","messagePattern":"Comment not found","errorType":"http","errorClass":null,"httpStatus":404,"severity":"error","filePath":"server/src/routes/issues.ts","lineNumber":12548,"sourceCode":"          targetRunId: req.body.targetRunId,\n          turnId: acknowledgedTurnId,\n          duplicate,\n        },\n      });\n      res.json(await runRedactions.redactForIssue(issue.companyId, issue.id, queue));\n    },\n  );\n\n\n  router.delete(\n    \"/issues/:id/queued-comments/:commentId\",\n    validate(queuedCommentMutationTargetSchema),\n    async (req, res) => {\n      assertBoard(req);\n      if (!req.actor.userId) throw forbidden(\"Board user context required\");\n      const id = req.params.id as string;\n      const commentId = req.params.commentId as string;\n      const issue = await getAccessibleResource(req, res, svc.getById(id), \"Issue not found\");\n      if (!issue) return;\n      const actor = getActorInfo(req);\n      const { queue } = await discardQueuedComment({\n        issue,\n        actor,\n        commentId,\n        queueId: req.body.queueId,\n        revision: req.body.revision,\n      });\n      res.json(await runRedactions.redactForIssue(issue.companyId, issue.id, queue));\n    },\n  );\n\n  router.get(\"/issues/:id/interactions\", async (req, res) => {\n    const id = req.params.id as string;\n    const issue = await getAccessibleResource(req, res, getIssueById(req, id), \"Issue not found\");\n    if (!issue) return;\n    if (!(await assertIssueReadAllowed(req, res, issue))) return;","sourceCodeStart":12530,"sourceCodeEnd":12566,"githubUrl":"https://github.com/paperclipai/paperclip/blob/01ad8584922b5d85292b1723cae71fa0d9b07a19/server/src/routes/issues.ts#L12530-L12566","documentation":"404 from GET /issues/:id/comments/:commentId. Fires when svc.getComment returns no comment for the id, or the comment exists but belongs to a different issue than the one in the URL — the comment is scoped under the issue path.","triggerScenarios":"Thrown at server/src/routes/issues.ts:11544 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","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."],"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"}