openai/codex · error · io::Error

io::ErrorKind::InvalidData

io::ErrorKind::InvalidData

Error message

failed to parse remote control client last_seen_at `{last_seen_at}`: {err}

What it means

Error "failed to parse remote control client last_seen_at `{last_seen_at}`: {err}" thrown in openai/codex.

Source

Thrown at codex-rs/app-server-transport/src/transport/remote_control/clients.rs:293

impl TryFrom<RemoteControlClientResponse> for RemoteControlClient {
    type Error = io::Error;

    fn try_from(client: RemoteControlClientResponse) -> Result<Self, Self::Error> {
        Ok(Self {
            client_id: client.client_id,
            display_name: client.display_name,
            device_type: client.device_type,
            platform: client.platform,
            os_version: client.os_version,
            device_model: client.device_model,
            app_version: client.app_version,
            last_seen_at: client
                .last_seen_at
                .map(|last_seen_at| {
                    OffsetDateTime::parse(&last_seen_at, &Rfc3339)
                        .map(OffsetDateTime::unix_timestamp)
                        .map_err(|err| {
                            io::Error::new(
                                ErrorKind::InvalidData,
                                format!(
                                    "failed to parse remote control client last_seen_at `{last_seen_at}`: {err}"
                                ),
                            )
                        })
                })
                .transpose()?,
        })
    }
}

View on GitHub (pinned to 339751715c)

When it happens

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

Common situations: See trigger scenarios.

Understand the failure class


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