{"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":66,"sourceCode":"    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      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      throw new Error(payload?.error ?? `Failed to request restart (${res.status})`);\n    }\n  },\n};\n","sourceCodeStart":48,"sourceCodeEnd":70,"githubUrl":"https://github.com/paperclipai/paperclip/blob/a7e689b3c35347b529cb9f54c9b9a8575a3dcab6/ui/src/api/health.ts#L48-L70","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":"a7e689b3c35347b529cb9f54c9b9a8575a3dcab6","analyzedAt":"2026-08-18T22:49:45.177Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}