{"record":{"id":"536d974f707458b1","repo":"Pumpkin-MC/Pumpkin","slug":"0","errorCode":null,"errorMessage":"{0}","messagePattern":"\\{0\\}","errorType":"exception","errorClass":"PacketDecodeError","httpStatus":null,"severity":"error","filePath":"crates/pumpkin-protocol/src/lib.rs","lineNumber":315,"sourceCode":"}\n\n#[derive(Error, Debug)]\npub enum PacketDecodeError {\n    #[error(\"failed to decode packet ID\")]\n    DecodeID,\n    #[error(\"packet exceeds maximum length\")]\n    TooLong,\n    #[error(\"packet length is out of bounds\")]\n    OutOfBounds,\n    #[error(\"malformed packet length VarInt: {0}\")]\n    MalformedLength(String),\n    #[error(\"failed to decompress packet: {0}\")]\n    FailedDecompression(String), // Updated to include error details\n    #[error(\"packet is uncompressed but greater than the threshold\")]\n    NotCompressed,\n    #[error(\"the connection has closed\")]\n    ConnectionClosed,\n    #[error(\"{0}\")]\n    Message(String),\n}\n\nimpl From<ReadingError> for PacketDecodeError {\n    fn from(value: ReadingError) -> Self {\n        Self::FailedDecompression(value.to_string())\n    }\n}\n\n#[derive(Clone, serde::Serialize)]\n#[serde(rename_all = \"camelCase\")]\npub struct StatusResponse {\n    /// The version on which the server is running. (Optional)\n    pub version: Option<Version>,\n    /// Information about currently connected players. (Optional)\n    pub players: Option<Players>,\n    /// The description displayed, also called MOTD (Message of the Day). (Optional)\n    pub description: TextComponent,","sourceCodeStart":297,"sourceCodeEnd":333,"githubUrl":"https://github.com/Pumpkin-MC/Pumpkin/blob/8d4639e25a57c15e47448ec327c780d41bbf2356/crates/pumpkin-protocol/src/lib.rs#L297-L333","documentation":"Catch-all variant of PacketDecodeError whose message is entirely supplied by the wrapped inner error ({0}). It is used to surface arbitrary lower-level decoding failures (e.g. io errors or specific field decode failures) through this enum; the meaning is that of the embedded error string, so inspect the inner value to diagnose the actual fault.","triggerScenarios":"Thrown at crates/pumpkin-protocol/src/lib.rs:315 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the embedded message to identify the failing decode step","Log it at debug level with connection context","Disconnect if the stream cannot be resynchronized"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8d4639e25a57c15e47448ec327c780d41bbf2356","analyzedAt":"2026-09-09T15:32:22.916Z","contentChangedAt":"2026-09-09T15:32:22.916Z","schemaVersion":2},"datasetVersion":"2026-09-15T23:17:13.987Z"}