{"record":{"id":"bfcba874faf60e61","repo":"paperclipai/paperclip","slug":"failed-to-request-restart-res-status","errorCode":null,"errorMessage":"Failed to request restart (${res.status})","messagePattern":"Failed to request restart \\((.+?)\\)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"ui/src/api/health.ts","lineNumber":67,"sourceCode":"  get: async (): Promise<HealthStatus> => {\n    const res = await fetch(\"/api/health\", {\n      credentials: \"include\",\n      headers: { Accept: \"application/json\" },\n    });\n    if (!res.ok) {\n      const payload = await res.json().catch(() => null) as { error?: string } | null;\n      const recovery = tenantSessionRecovery.recoverIfNeeded(res.status, payload);\n      if (recovery) return recovery;\n      throw new Error(payload?.error ?? `Failed to load health (${res.status})`);\n    }\n    return res.json();\n  },\n  requestDevServerRestart: async (): Promise<void> => {\n    const res = await fetch(\"/api/health/dev-server/restart\", {\n      method: \"POST\",\n      credentials: \"include\",\n      headers: { Accept: \"application/json\" },\n    });\n    if (!res.ok) {\n      const payload = await res.json().catch(() => null) as { error?: string } | null;\n      const recovery = tenantSessionRecovery.recoverIfNeeded(res.status, payload);\n      if (recovery) return recovery;\n      throw new Error(payload?.error ?? `Failed to request restart (${res.status})`);\n    }\n  },\n};\n","sourceCodeStart":49,"sourceCodeEnd":76,"githubUrl":"https://github.com/paperclipai/paperclip/blob/3f1d897a7c018d76563a21c6e39c3c9b03933622/ui/src/api/health.ts#L49-L76","documentation":"The UI's POST to /api/health/dev-server/restart returned a non-OK status. Same pattern as health get: server error payload if present, otherwise this status-bearing fallback message surfaced to the operator.","triggerScenarios":"Thrown at ui/src/api/health.ts:61 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the server is running and you have permission to request a restart, then retry.","Re-authenticate if the status is 401/403."],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"3f1d897a7c018d76563a21c6e39c3c9b03933622","analyzedAt":"2026-08-18T22:49:45.177Z","contentChangedAt":"2026-08-18T22:49:45.177Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}