{"record":{"id":"e4e7b18da1e9a01b","repo":"jdx/mise","slug":"remote-cache-blob-pack-blob-count-metadata-mismatc","errorCode":null,"errorMessage":"remote cache blob pack blob count metadata mismatch: expected {}, decoded {}","messagePattern":"remote cache blob pack blob count metadata mismatch: expected (.+?), decoded (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/mise-cache-core/src/lib.rs","lineNumber":303,"sourceCode":"            blob_count: optional_u64_header(headers, BLOB_PACK_BLOBS_HEADER)?,\n            payload_bytes: optional_u64_header(headers, BLOB_PACK_BYTES_HEADER)?,\n        })\n    }\n\n    fn validate(self, decoded: BlobPackResponseStats) -> Result<BlobPackResponseStats> {\n        if let Some(content_length) = self.content_length\n            && content_length != decoded.framed_bytes\n        {\n            bail!(\n                \"remote cache blob pack content length metadata mismatch: expected {}, decoded {}\",\n                content_length,\n                decoded.framed_bytes\n            );\n        }\n        if let Some(blob_count) = self.blob_count\n            && blob_count != decoded.blob_count\n        {\n            bail!(\n                \"remote cache blob pack blob count metadata mismatch: expected {}, decoded {}\",\n                blob_count,\n                decoded.blob_count\n            );\n        }\n        if let Some(payload_bytes) = self.payload_bytes\n            && payload_bytes != decoded.payload_bytes\n        {\n            bail!(\n                \"remote cache blob pack payload byte metadata mismatch: expected {}, decoded {}\",\n                payload_bytes,\n                decoded.payload_bytes\n            );\n        }\n        Ok(BlobPackResponseStats {\n            blob_count: self.blob_count.unwrap_or(decoded.blob_count),\n            payload_bytes: self.payload_bytes.unwrap_or(decoded.payload_bytes),\n            framed_bytes: self.content_length.unwrap_or(decoded.framed_bytes),","sourceCodeStart":285,"sourceCodeEnd":321,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/crates/mise-cache-core/src/lib.rs#L285-L321","documentation":"BlobPackResponseMetadata::validate compares the blob-count response header (BLOB_PACK_BLOBS) with the number of blobs actually decoded from the pack body. A difference indicates a malformed or corrupted pack, so the response is rejected rather than partially applied.","triggerScenarios":"Thrown at crates/mise-cache-core/src/lib.rs:303 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry the blob pack request","Check for a server or proxy bug that drops blobs from the body","Report the mismatch to the remote cache operator if reproducible"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"533346cc374382b41ec5ff70536252b2e96e725c","analyzedAt":"2026-09-17T13:35:38.149Z","contentChangedAt":"2026-09-17T13:35:38.149Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}