jdx/mise · error
remote cache blob pack blob count metadata mismatch…
Error message
remote cache blob pack blob count metadata mismatch: expected {}, decoded {} What it means
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.
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
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at crates/mise-cache-core/src/lib.rs:303 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of jdx/mise@533346cc37 (2026-09-17).
Data as JSON: /api/errors/e4e7b18da1e9a01b.
Report an issue: GitHub.
Appendix: source
Thrown at crates/mise-cache-core/src/lib.rs:303
blob_count: optional_u64_header(headers, BLOB_PACK_BLOBS_HEADER)?,
payload_bytes: optional_u64_header(headers, BLOB_PACK_BYTES_HEADER)?,
})
}
fn validate(self, decoded: BlobPackResponseStats) -> Result<BlobPackResponseStats> {
if let Some(content_length) = self.content_length
&& content_length != decoded.framed_bytes
{
bail!(
"remote cache blob pack content length metadata mismatch: expected {}, decoded {}",
content_length,
decoded.framed_bytes
);
}
if let Some(blob_count) = self.blob_count
&& blob_count != decoded.blob_count
{
bail!(
"remote cache blob pack blob count metadata mismatch: expected {}, decoded {}",
blob_count,
decoded.blob_count
);
}
if let Some(payload_bytes) = self.payload_bytes
&& payload_bytes != decoded.payload_bytes
{
bail!(
"remote cache blob pack payload byte metadata mismatch: expected {}, decoded {}",
payload_bytes,
decoded.payload_bytes
);
}
Ok(BlobPackResponseStats {
blob_count: self.blob_count.unwrap_or(decoded.blob_count),
payload_bytes: self.payload_bytes.unwrap_or(decoded.payload_bytes),
framed_bytes: self.content_length.unwrap_or(decoded.framed_bytes),View on GitHub (pinned to 533346cc37)