{"record":{"id":"5cc6eede38ef819f","repo":"openai/codex","slug":"notfound","errorCode":"NotFound","errorMessage":"missing proxy env key {}","messagePattern":"missing proxy env key (.+?)","errorType":"exception","errorClass":"io::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/linux-sandbox/src/proxy_routing.rs","lineNumber":179,"sourceCode":"\n    let mut local_port_by_uds_path: BTreeMap<PathBuf, u16> = BTreeMap::new();\n    for route in &spec.routes {\n        if local_port_by_uds_path.contains_key(&route.uds_path) {\n            continue;\n        }\n        let local_port = spawn_local_bridge(route.uds_path.as_path())?;\n        local_port_by_uds_path.insert(route.uds_path.clone(), local_port);\n    }\n\n    for route in spec.routes {\n        let Some(local_port) = local_port_by_uds_path.get(&route.uds_path) else {\n            return Err(io::Error::other(format!(\n                \"missing local bridge port for UDS path {}\",\n                route.uds_path.display()\n            )));\n        };\n        let original_value = std::env::var(&route.env_key).map_err(|_| {\n            io::Error::new(\n                io::ErrorKind::NotFound,\n                format!(\"missing proxy env key {}\", route.env_key),\n            )\n        })?;\n        let Some(rewritten) = rewrite_proxy_env_value(&original_value, *local_port) else {\n            return Err(io::Error::new(\n                io::ErrorKind::InvalidInput,\n                format!(\"could not rewrite proxy URL for env key {}\", route.env_key),\n            ));\n        };\n        // SAFETY: this helper process is single-threaded at this point, and\n        // env mutation happens before execing the user command.\n        unsafe {\n            std::env::set_var(route.env_key, rewritten);\n        }\n    }\n\n    Ok(())","sourceCodeStart":161,"sourceCodeEnd":197,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/linux-sandbox/src/proxy_routing.rs#L161-L197","documentation":"Error \"missing proxy env key {}\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/linux-sandbox/src/proxy_routing.rs:179 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"}