{"record":{"id":"937bb08102b1e733","repo":"nikivdev/code","slug":"restart-failed","errorCode":null,"errorMessage":"{} (restart failed: {})","messagePattern":"(.+?) \\(restart failed: (.+?)\\)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/commit.rs","lineNumber":1650,"sourceCode":"        return Ok(());\n    }\n    daemon::stop_daemon_with_path(\"rise\", None).ok();\n    daemon::start_daemon_with_path(\"rise\", None)\n}\n\nfn send_rise_request_text(\n    client: &Client,\n    rise_url: &str,\n    body: &ChatRequest,\n    model: &str,\n) -> Result<String> {\n    let resp = send_rise_request(client, rise_url, body)?;\n    if !resp.status().is_success() {\n        let error_text = resp.text().unwrap_or_else(|_| \"unknown error\".to_string());\n        if is_rise_auth_error(&error_text) {\n            info!(\"Rise auth error; attempting daemon restart...\");\n            if let Err(err) = try_restart_rise_daemon() {\n                bail!(\n                    \"{} (restart failed: {})\",\n                    rise_auth_error_message(model),\n                    err\n                );\n            }\n            std::thread::sleep(Duration::from_millis(500));\n            wait_for_rise_ready(client, rise_url);\n            let resp = send_rise_request(client, rise_url, body)?;\n            if !resp.status().is_success() {\n                let error_text = resp.text().unwrap_or_else(|_| \"unknown error\".to_string());\n                bail!(\"Rise daemon error: {}\", error_text);\n            }\n            let text = resp.text().context(\"failed to read Rise response\")?;\n            if is_rise_auth_error(&text) {\n                bail!(rise_auth_error_message(model));\n            }\n            return Ok(text);\n        }","sourceCodeStart":1632,"sourceCodeEnd":1668,"githubUrl":"https://github.com/nikivdev/code/blob/a747e741ae92c09071d0ae946ab48488adcff1ce/src/commit.rs#L1632-L1668","documentation":"Error \"{} (restart failed: {})\" thrown in nikivdev/code.","triggerScenarios":"Thrown at src/commit.rs:1650 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a747e741ae92c09071d0ae946ab48488adcff1ce","analyzedAt":"2026-09-01T22:43:55.719Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}