openai/codex · error · io::Error

remote control pairing status failed at `{}`: HTTP {status},

Error message

remote control pairing status failed at `{}`: HTTP {status}, {}, body: {body_preview}

What it means

Error "remote control pairing status failed at `{}`: HTTP {status}, {}, body: {body_preview}" thrown in openai/codex.

Source

Thrown at codex-rs/app-server-transport/src/transport/remote_control/enroll.rs:185

                    self.remote_control_target.pair_status_url
                ))
            })?;
        let headers = response.headers().clone();
        let status = response.status();
        let body = response.bytes().await.map_err(|err| {
            io::Error::other(format!(
                "failed to read remote control pairing status response from `{}`: {err}",
                self.remote_control_target.pair_status_url
            ))
        })?;
        let body_preview = preview_remote_control_response_body(&body);
        if !status.is_success() {
            let error_kind = match status.as_u16() {
                401 | 403 => ErrorKind::PermissionDenied,
                404 | 410 => ErrorKind::InvalidInput,
                _ => ErrorKind::Other,
            };
            return Err(io::Error::new(
                error_kind,
                format!(
                    "remote control pairing status failed at `{}`: HTTP {status}, {}, body: {body_preview}",
                    self.remote_control_target.pair_status_url,
                    format_headers(&headers)
                ),
            ));
        }

        let response = serde_json::from_slice::<BackendRemoteControlPairingStatusResponse>(&body)
            .map_err(|err| {
                io::Error::other(format!(
                    "failed to parse remote control pairing status response from `{}`: HTTP {status}, {}, body: {body_preview}, decode error: {err}",
                    self.remote_control_target.pair_status_url,
                    format_headers(&headers)
                ))
            })?;
        Ok(RemoteControlPairingStatusResponse {

View on GitHub (pinned to 339751715c)

When it happens

Trigger: Thrown at codex-rs/app-server-transport/src/transport/remote_control/enroll.rs:185 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of openai/codex@339751715c (2026-08-25). Data as JSON: /api/errors/652440adb1c5ec35. Report an issue: GitHub.