{"record":{"id":"9e02fc42647212e9","repo":"jdx/mise","slug":"self-update-api-url-must-use-https-got","errorCode":null,"errorMessage":"self_update.api_url must use HTTPS, got {:?}","messagePattern":"self_update\\.api_url must use HTTPS, got (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/cli/version.rs","lineNumber":83,"sourceCode":"    #[cfg(feature = \"self_update\")]\n    pub(crate) fn repository_parts(&self) -> Result<(&str, &str)> {\n        let (owner, repo) = self.repository.split_once('/').ok_or_else(|| {\n            eyre::eyre!(\n                \"self_update.repository must be in owner/repository format, got {:?}\",\n                self.repository\n            )\n        })?;\n        eyre::ensure!(\n            !owner.is_empty() && !repo.is_empty() && !repo.contains('/'),\n            \"self_update.repository must be in owner/repository format, got {:?}\",\n            self.repository\n        );\n        Ok((owner, repo))\n    }\n\n    pub(crate) fn validate(&self) -> Result<()> {\n        let api_url = url::Url::parse(&self.api_url)?;\n        eyre::ensure!(\n            api_url.scheme() == \"https\",\n            \"self_update.api_url must use HTTPS, got {:?}\",\n            self.api_url\n        );\n        Ok(())\n    }\n}\n\n/// Display the version of mise\n///\n/// Displays the version, os, architecture, and the date of the build.\n///\n/// If the version is out of date, it will display a warning.\n#[derive(Debug, usage_rs::Args)]\n#[usage(\n    verbatim_doc_comment,\n    visible_alias = \"v\",\n    example(","sourceCodeStart":65,"sourceCodeEnd":101,"githubUrl":"https://github.com/jdx/mise/blob/afd2eddd3a50c16190efc1c7e94404b48f72af57/src/cli/version.rs#L65-L101","documentation":"Settings validation in SelfUpdate validate(): the configured self_update.api_url does not use HTTPS, so the self-updater refuses to contact it (plain HTTP would allow tampered downloads). Fires when api_url is set to an http:// endpoint.","triggerScenarios":"Thrown at src/cli/version.rs:83 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Change self_update.api_url to an https:// URL","Remove the override to use the default GitHub API endpoint","Retry self-update once the URL is HTTPS"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"afd2eddd3a50c16190efc1c7e94404b48f72af57","analyzedAt":"2026-09-09T01:38:25.179Z","contentChangedAt":"2026-09-09T01:38:25.179Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}