{"record":{"id":"6df608fc60b2e148","repo":"jdx/mise","slug":"remote-platform-response-is-incomplete","errorCode":null,"errorMessage":"remote platform response is incomplete","messagePattern":"remote platform response is incomplete","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/system/remote.rs","lineNumber":1712,"sourceCode":"        if [ -e \"$loader\" ]; then libc=musl; break; fi\n      done\n    fi\n    printf '%s\\n' \"${libc:-unknown}\"\n    ;;\n  *) printf '%s\\n' none ;;\nesac\"#\n}\n\nfn parse_remote_platform(output: &str) -> Result<RemotePlatform> {\n    let mut lines = output.lines();\n    let os = normalize_os(lines.next().unwrap_or_default());\n    let arch = normalize_arch(lines.next().unwrap_or_default());\n    let libc = match (os.as_str(), lines.next()) {\n        (\"linux\", Some(\"glibc\")) => Some(LibcFlavor::Glibc),\n        (\"linux\", Some(\"musl\")) => Some(LibcFlavor::Musl),\n        (\"linux\", _) => bail!(\"remote Linux libc family could not be identified\"),\n        (_, Some(\"none\")) => None,\n        _ => bail!(\"remote platform response is incomplete\"),\n    };\n    if os.is_empty() || arch.is_empty() || lines.next().is_some() {\n        bail!(\"remote platform response is invalid\");\n    }\n    Ok(RemotePlatform { os, arch, libc })\n}\n\n#[derive(Clone, Debug, Eq, Ord, PartialEq, PartialOrd)]\nstruct AbiVersion(Vec<u32>);\n\nimpl fmt::Display for AbiVersion {\n    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {\n        f.write_str(\n            &self\n                .0\n                .iter()\n                .map(u32::to_string)\n                .collect::<Vec<_>>()","sourceCodeStart":1694,"sourceCodeEnd":1730,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/system/remote.rs#L1694-L1730","documentation":"parse_remote_platform expected three lines (os, arch, libc) from the remote detection script but received fewer — the output was truncated or the script failed partway, so required platform fields are missing and parsing fails.","triggerScenarios":"Thrown at src/system/remote.rs:1712 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Re-run the remote bootstrap; transient SSH/session truncation is common","Check that the remote shell can execute the POSIX detection script","Capture the raw script output manually to see which line is missing"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"533346cc374382b41ec5ff70536252b2e96e725c","analyzedAt":"2026-09-17T13:35:38.149Z","contentChangedAt":"2026-09-17T13:35:38.149Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}