{"record":{"id":"dda36c98f7c59126","repo":"openai/codex","slug":"environment-registry-request-failed-0","errorCode":null,"errorMessage":"environment registry request failed: {0}","messagePattern":"environment registry request failed: (.+?)","errorType":"exception","errorClass":"ExecServerError","httpStatus":null,"severity":"error","filePath":"codex-rs/exec-server/src/client.rs","lineNumber":670,"sourceCode":"    #[error(\"exec-server protocol error: {0}\")]\n    Protocol(String),\n    #[error(\n        \"environment `{environment_id}` is already registered with a different provisioning mode\"\n    )]\n    ProvisioningModeConflict { environment_id: String },\n    #[error(\"exec-server rejected request ({code}): {message}\")]\n    Server { code: i64, message: String },\n    #[error(\"environment registry request failed ({status}{code_suffix}): {message}\", code_suffix = .code.as_ref().map(|code| format!(\", {code}\")).unwrap_or_default())]\n    EnvironmentRegistryHttp {\n        status: http::StatusCode,\n        code: Option<String>,\n        message: String,\n    },\n    #[error(\"environment registry configuration error: {0}\")]\n    EnvironmentRegistryConfig(String),\n    #[error(\"environment registry authentication error: {0}\")]\n    EnvironmentRegistryAuth(String),\n    #[error(\"environment registry request failed: {0}\")]\n    EnvironmentRegistryRequest(#[from] codex_http_client::RouteAwareRequestError),\n    #[error(\"exec-server connection attempt failed: {0}\")]\n    ConnectionAttempt(#[source] Arc<ExecServerError>),\n}\n\nimpl ExecServerClient {\n    fn attach_environment_connection_state(\n        &self,\n        state_tx: watch::Sender<EnvironmentConnectionState>,\n    ) {\n        let mut connection = self\n            .inner\n            .connection\n            .lock()\n            .unwrap_or_else(std::sync::PoisonError::into_inner);\n        connection.environment_connection_state_tx = state_tx;\n        connection.publish_environment_connection_state();\n    }","sourceCodeStart":652,"sourceCodeEnd":688,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/exec-server/src/client.rs#L652-L688","documentation":"Error \"environment registry request failed: {0}\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/exec-server/src/client.rs:670 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check connectivity to the environment registry and retry."],"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"}