{"record":{"id":"9a7c045c9b5541c7","repo":"zeroclaw-labs/zeroclaw","slug":"invalid-field-url-scheme-scheme-allowed-ht","errorCode":null,"errorMessage":"Invalid {field} URL scheme '{scheme}'. Allowed: http, https, socks5, socks5h, socks","messagePattern":"Invalid (.+?) URL scheme '(.+?)'\\. Allowed: http, https, socks5, socks5h, socks","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/zeroclaw-config/src/schema.rs","lineNumber":10172,"sourceCode":"                        anyhow::bail!(\n                            \"mcp.servers[{i}].url must use https when tls_ca_cert_path is set\"\n                        );\n                    }\n                }\n            }\n        }\n    }\n    Ok(())\n}\n\nfn validate_proxy_url(field: &str, url: &str) -> Result<()> {\n    let parsed = reqwest::Url::parse(url)\n        .with_context(|| format!(\"Invalid {field} URL: '{url}' is not a valid URL\"))?;\n\n    match parsed.scheme() {\n        \"http\" | \"https\" | \"socks5\" | \"socks5h\" | \"socks\" => {}\n        scheme => {\n            anyhow::bail!(\n                \"Invalid {field} URL scheme '{scheme}'. Allowed: http, https, socks5, socks5h, socks\"\n            );\n        }\n    }\n\n    if parsed.host_str().is_none() {\n        anyhow::bail!(\"Invalid {field} URL: host is required\");\n    }\n\n    Ok(())\n}\n\nfn validate_http_base_url(field: &str, url: &str) -> Result<()> {\n    if url.trim().is_empty() {\n        validation_bail!(\n            RequiredFieldEmpty,\n            field.to_string(),\n            \"{field} must not be empty\"","sourceCodeStart":10154,"sourceCodeEnd":10190,"githubUrl":"https://github.com/zeroclaw-labs/zeroclaw/blob/88bb9c8533fc57ed7a03e36ca7c9ed2bf8336dcc/crates/zeroclaw-config/src/schema.rs#L10154-L10190","documentation":"Error \"Invalid {field} URL scheme '{scheme}'. Allowed: http, https, socks5, socks5h, socks\" thrown in zeroclaw-labs/zeroclaw.","triggerScenarios":"Thrown at crates/zeroclaw-config/src/schema.rs:10172 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use an allowed URL scheme (http, https, socks5, socks5h, socks) for the proxy field."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"88bb9c8533fc57ed7a03e36ca7c9ed2bf8336dcc","analyzedAt":"2026-08-23T01:07:41.857Z","schemaVersion":2},"datasetVersion":"2026-08-23T08:06:27.607Z"}