{"record":{"id":"6301c057e975c793","repo":"paperclipai/paperclip","slug":"board-access-required","errorCode":null,"errorMessage":"board_access_required","messagePattern":"board_access_required","errorType":"http","errorClass":null,"httpStatus":403,"severity":"error","filePath":"server/src/routes/health.ts","lineNumber":141,"sourceCode":"    deploymentExposure: DeploymentExposure;\n    authReady: boolean;\n    companyDeletionEnabled: boolean;\n    serverInfo?: ServerInfoSnapshot;\n    databaseBackupHealth?: InspectDatabaseBackupHealthOptions;\n    runtimeEnv?: CloudInstanceEnv;\n  } = {\n    deploymentMode: \"local_trusted\",\n    deploymentExposure: \"private\",\n    authReady: true,\n    companyDeletionEnabled: true,\n  },\n) {\n  const router = Router();\n\n  router.post(\"/dev-server/restart\", async (req, res) => {\n    const actorType = \"actor\" in req ? req.actor?.type : null;\n    if (opts.deploymentMode === \"authenticated\" && actorType !== \"board\") {\n      res.status(403).json({ error: \"board_access_required\" });\n      return;\n    }\n\n    const persistedDevServerStatus = readPersistedDevServerStatus();\n    if (!persistedDevServerStatus) {\n      res.status(404).json({ error: \"dev_server_supervisor_unavailable\" });\n      return;\n    }\n\n    const restartRequired =\n      persistedDevServerStatus.dirty ||\n      persistedDevServerStatus.changedPathCount > 0 ||\n      persistedDevServerStatus.pendingMigrations.length > 0;\n    if (!restartRequired) {\n      res.status(409).json({ error: \"restart_not_required\" });\n      return;\n    }\n","sourceCodeStart":123,"sourceCodeEnd":159,"githubUrl":"https://github.com/paperclipai/paperclip/blob/01ad8584922b5d85292b1723cae71fa0d9b07a19/server/src/routes/health.ts#L123-L159","documentation":"The dev-server restart endpoint refused the request because the instance runs in authenticated deployment mode and the actor is not a board user; only board actors may trigger dev-server restarts there.","triggerScenarios":"Thrown at server/src/routes/health.ts:98 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Include the required field(s) in the request path, query, or body as named by the error message, then retry.","Check the API contract in packages/shared validators for the exact required shape of this endpoint."],"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-14T05:17:10.506Z"}