{"record":{"id":"590671b7aabb8015","repo":"Hmbown/CodeWhale","slug":"runtime-api-server-error-e","errorCode":null,"errorMessage":"Runtime API server error: {e}","messagePattern":"Runtime API server error: (.+?)","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/tui/src/runtime_api.rs","lineNumber":976,"sourceCode":"        );\n        if !auth_enabled {\n            println!(\n                \"  WARNING: auth is disabled. Anyone on the network can call /v1/* without authentication.\"\n            );\n        }\n        println!(\n            \"  /v1/runtime/info reports bind_host={host:?}, port={port}, auth_required={auth}.\",\n            host = options.host,\n            port = options.port,\n            auth = auth_enabled,\n        );\n    }\n    let serve_result = axum::serve(\n        listener,\n        app.into_make_service_with_connect_info::<SocketAddr>(),\n    )\n    .await\n    .map_err(|e| anyhow!(\"Runtime API server error: {e}\"));\n    scheduler_cancel.cancel();\n    scheduler_handle.abort();\n    serve_result\n}\n\nfn web_launcher_warning(result: Result<()>) -> Option<String> {\n    result.err().map(|error| {\n        format!(\n            \"warning: could not open the default browser ({error}); open the bootstrap URL above manually\"\n        )\n    })\n}\n\nfn fallback_sessions_dir() -> PathBuf {\n    if let Some(home) = codewhale_paths::codewhale_home_override().ok().flatten() {\n        return home.join(\"sessions\");\n    }\n    codewhale_paths::legacy_deepseek_home()","sourceCodeStart":958,"sourceCodeEnd":994,"githubUrl":"https://github.com/Hmbown/CodeWhale/blob/0c42157ee52f9d55af2b506d71b46249910f77d3/crates/tui/src/runtime_api.rs#L958-L994","documentation":"The axum Runtime API server's serve() future returned an error after startup — listener/accept or IO-level failure during serving, not a request-handling error.","triggerScenarios":"Thrown at crates/tui/src/runtime_api.rs:976 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check whether the port is still free or the socket was closed unexpectedly","Inspect system logs for resource or network issues","Restart the Runtime API server"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0c42157ee52f9d55af2b506d71b46249910f77d3","analyzedAt":"2026-08-20T21:50:45.477Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}