openai/codex · error · anyhow::Error
invalid unix timestamp millis: {millis}
Error message
invalid unix timestamp millis: {millis} What it means
Error "invalid unix timestamp millis: {millis}" thrown in openai/codex.
Source
Thrown at codex-rs/state/src/runtime/thread_section_order.rs:40
"SELECT id, section_position, section_entered_at_ms FROM threads WHERE id IN (",
);
let mut separated = builder.separated(", ");
for thread_id in thread_ids {
separated.push_bind(thread_id.to_string());
}
separated.push_unseparated(")");
let rows = builder
.build_query_as::<(String, Option<i64>, Option<i64>)>()
.fetch_all(self.pool.as_ref())
.await?;
rows.into_iter()
.map(|(thread_id, section_position, section_entered_at_ms)| {
let thread_id = ThreadId::try_from(thread_id)?;
let section_entered_at = section_entered_at_ms
.map(|millis| {
DateTime::<Utc>::from_timestamp_millis(millis).ok_or_else(|| {
anyhow::anyhow!("invalid unix timestamp millis: {millis}")
})
})
.transpose()?;
Ok((thread_id, (section_position, section_entered_at)))
})
.collect()
}
/// Read an independently persisted thread section by its opaque identifier.
pub async fn get_thread_section(
&self,
id: &str,
) -> anyhow::Result<Option<crate::ThreadSection>> {
let row = sqlx::query_as::<_, (String, String, Option<String>)>(
"SELECT id, name, appearance FROM thread_sections WHERE id = ?",
)
.bind(id)
.fetch_optional(self.pool.as_ref())View on GitHub (pinned to 339751715c)
When it happens
Trigger: Thrown at codex-rs/state/src/runtime/thread_section_order.rs:40 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/8cf0aecba6812ef1.
Report an issue: GitHub.