{"record":{"id":"7572a400b7b20fe9","repo":"paperclipai/paperclip","slug":"reviewrequest-requires-an-active-review-or-approva","errorCode":null,"errorMessage":"reviewRequest requires an active review or approval stage","messagePattern":"reviewRequest requires an active review or approval stage","errorType":"http","errorClass":null,"httpStatus":422,"severity":"error","filePath":"server/src/routes/issues.ts","lineNumber":10077,"sourceCode":"    });\n\n    res.json({ ok: true });\n  });\n\n  router.post(\"/issues/:id/scheduled-retry/retry-now\", async (req, res) => {\n    assertBoard(req);\n    const id = req.params.id as string;\n    const issue = await getAccessibleResource(req, res, svc.getById(id), \"Issue not found\");\n    if (!issue) return;\n\n    const actor = getActorInfo(req);\n    const result = await heartbeat.retryScheduledRetryNow({\n      issueId: issue.id,\n      actor: {\n        actorType: actor.actorType,\n        actorId: actor.actorId,\n      },\n    });\n\n    await logActivity(db, {\n      companyId: issue.companyId,\n      actorType: actor.actorType,\n      actorId: actor.actorId,\n      action: \"issue.scheduled_retry_retry_now\",\n      entityType: \"issue\",\n      entityId: issue.id,\n      agentId: result.scheduledRetry?.agentId ?? issue.assigneeAgentId ?? null,\n      runId: result.scheduledRetry?.runId ?? null,\n      details: {\n        outcome: result.outcome,\n        message: result.message,\n        scheduledRetry: result.scheduledRetry,\n      },\n    });\n\n    res.json(result);","sourceCodeStart":10059,"sourceCodeEnd":10095,"githubUrl":"https://github.com/paperclipai/paperclip/blob/01ad8584922b5d85292b1723cae71fa0d9b07a19/server/src/routes/issues.ts#L10059-L10095","documentation":"422 on issue update. Fires when a reviewRequest is submitted but the issue has no active review stage and no pending approval stage, so there is nothing to route the review request against.","triggerScenarios":"Thrown at server/src/routes/issues.ts:9396 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Correct the request so it satisfies the condition stated in the error message, then retry; see the throwing line in the named file for the exact check."],"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"}