{"record":{"id":"e142aac1b675caec","repo":"jdx/mise","slug":"remote-platform-response-is-invalid","errorCode":null,"errorMessage":"remote platform response is invalid","messagePattern":"remote platform response is invalid","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/system/remote.rs","lineNumber":1715,"sourceCode":"    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<_>>()\n                .join(\".\"),\n        )\n    }","sourceCodeStart":1697,"sourceCodeEnd":1733,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/system/remote.rs#L1697-L1733","documentation":"parse_remote_platform got a complete line count but a value failed normalization (normalize_os/normalize_arch returned nothing), i.e. the os/arch strings are not a recognizable platform. The remote reported something mise cannot map to a known platform tuple.","triggerScenarios":"Thrown at src/system/remote.rs:1715 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the remote's uname output is a supported platform","Set explicit overrides (mise_bin/remote_mise/bootstrap_command) instead of relying on detection","File an issue with the raw detection output"],"exampleFix":null,"handlingStrategy":"fallback","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"}