Pumpkin-MC/Pumpkin · error · ChatError
has an expired public key
Error message
has an expired public key
What it means
ChatError sentinel for the secure-chat key lifecycle: the player's public key attached to the login/chat session has expired, so signatures can no longer be trusted. Fires when the client keeps chatting with a key whose expiry timestamp is in the past (server clocks drifting or a stale client session). The expired key is delivered by the client in its profile/signature data.
Solutions
- Kick the player so a fresh key is negotiated
- Check key expiry (allowed from timestamp) before accepting signatures
- Log the expiry event
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at crates/pumpkin/src/net/java/play/mod.rs:138 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of Pumpkin-MC/Pumpkin@8d4639e25a (2026-09-09).
Data as JSON: /api/errors/109b91f6d3edfa99.
Report an issue: GitHub.
Appendix: source
Thrown at crates/pumpkin/src/net/java/play/mod.rs:138
}
}
}
#[derive(Debug, Error)]
pub enum ChatError {
#[error("sent an oversized message")]
OversizedMessage,
#[error("sent a message with illegal characters")]
IllegalCharacters,
#[error("sent a chat with invalid/no signature")]
UnsignedChat,
#[error("has too many unacknowledged chats queued")]
TooManyPendingChats,
#[error("sent a chat that couldn't be validated")]
ChatValidationFailed,
#[error("sent a chat with an out of order timestamp")]
OutOfOrderChat,
#[error("has an expired public key")]
ExpiredPublicKey,
#[error("attempted to initialize a session with an invalid public key")]
InvalidPublicKey,
}
impl PumpkinError for ChatError {
fn is_kick(&self) -> bool {
true
}
fn severity(&self) -> Level {
Level::WARN
}
fn client_kick_reason(&self) -> Option<String> {
match self {
Self::OversizedMessage => Some("Chat message too long".into()),
Self::IllegalCharacters => Some(View on GitHub (pinned to 8d4639e25a)