{"record":{"id":"1b91e69dc620e3ce","repo":"openai/codex","slug":"missing-host-in-network-proxy-address-input","errorCode":null,"errorMessage":"missing host in network proxy address: {input}","messagePattern":"missing host in network proxy address: (.+?)","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/network-proxy/src/config.rs","lineNumber":571,"sourceCode":"        .split_once(\"://\")\n        .map(|(_, rest)| rest)\n        .unwrap_or(input);\n    let host_port = without_scheme.split('/').next().unwrap_or(without_scheme);\n    let host_port = host_port\n        .rsplit_once('@')\n        .map(|(_, rest)| rest)\n        .unwrap_or(host_port);\n\n    if host_port.starts_with('[')\n        && let Some(end) = host_port.find(']')\n    {\n        let host = &host_port[1..end];\n        let port = host_port[end + 1..]\n            .strip_prefix(':')\n            .and_then(|port| port.parse::<u16>().ok())\n            .unwrap_or(default_port);\n        if host.is_empty() {\n            bail!(\"missing host in network proxy address: {input}\");\n        }\n        return Ok(SocketAddressParts {\n            host: host.to_string(),\n            port,\n        });\n    }\n\n    // Only treat `host:port` as such when there's a single `:`. This avoids\n    // accidentally interpreting unbracketed IPv6 addresses as `host:port`.\n    if host_port.bytes().filter(|b| *b == b':').count() == 1\n        && let Some((host, port)) = host_port.rsplit_once(':')\n    {\n        if host.is_empty() {\n            bail!(\"missing host in network proxy address: {input}\");\n        }\n        return Ok(SocketAddressParts {\n            host: host.to_string(),\n            port: port.parse::<u16>().ok().unwrap_or(default_port),","sourceCodeStart":553,"sourceCodeEnd":589,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/network-proxy/src/config.rs#L553-L589","documentation":"Error \"missing host in network proxy address: {input}\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/network-proxy/src/config.rs:571 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"339751715c64496cb86246bfb3935f40e309dd3d","analyzedAt":"2026-08-25T05:35:09.876Z","schemaVersion":2},"datasetVersion":"2026-08-25T06:17:31.827Z"}