jdx/mise · error
remote action result does not match requested action
Error message
remote action result does not match requested action
What it means
After fetching an action result, the client verifies the returned record: its version must be 1 and its embedded action digest must equal the requested digest. If the server returns a record for a different action (or an unsupported result version), the client bails instead of trusting mismatched data. This is an integrity check against wrong-keyed or corrupt server entries.
Solutions
- Inspect the server's keying logic — it should 404 rather than return a non-matching record
- Purge/clear the affected cache namespace entries
- Confirm the server writes result version 1 records; upgrade the server if it emits another version
- Retry the lookup; if a single entry is persistently wrong, delete that key
Defensive patterns
Strategy: validation
Validate before calling
if let Some(result) = client.get_action_result(&action).await? {
if result.version != 1 || result.action != *action {
bail!("server returned a mismatched action result; purge the entry");
}
} Type guard
fn result_matches(r: &RemoteActionResult, action: &CacheDigest) -> bool {
r.version == 1 && r.action == *action
} Try / catch
match client.get_action_result(&action).await {
Err(e) if e.to_string().contains("does not match requested action") => {
// treat as cache miss; purge the key and recompute
}
other => other?,
} Prevention
- Monitor server logs for records returned under wrong keys
- Purge the affected namespace when mismatches are detected
- Keep server result-format version at 1 or upgrade both sides together
When it happens
Trigger: Calling get_action_result and receiving a stored RemoteActionResult whose .action digest differs from the requested CacheDigest, or whose .version != 1.
Common situations: A broken or buggy cache server returning whatever record it has instead of 404; hash collisions or key-encoding bugs server-side; a server storing results in an older result format after a protocol change.
Understand the failure class
Background: Checksum mismatch errors: "checksum verification failed", "digest mismatch", "expected vs actual checksum" — what they mean and how to fix them — this error's family across 41 libraries.
Related errors
- remote cache blob failed digest verification
- remote cache blob pack failed digest verification
- remote cache blob pack returned a duplicate digest
- remote cache blob pack returned an unrequested digest
- artifact target has changed
AI-assisted analysis of jdx/mise@533346cc37 (2026-09-17).
Data as JSON: /api/errors/2d3764d970af5c4b.
Report an issue: GitHub.
Appendix: source
Thrown at crates/mise-cache-core/src/lib.rs:632
.request(reqwest::Method::GET, url.clone(), ACTION_RESULT_MEDIA_TYPE)
.await?
.send()
.await?;
if response.status() == StatusCode::NOT_FOUND {
return Ok(None);
}
Ok(Some(
response
.error_for_status()?
.json::<RemoteActionResult>()
.await?,
))
})
.await?;
if let Some(result) = &result
&& (result.version != 1 || result.action != *action)
{
bail!("remote action result does not match requested action");
}
Ok(result)
}
pub async fn put_action_result(&self, result: &RemoteActionResult) -> Result<()> {
let url = self.action_result_endpoint(&result.action)?;
let body = serde_json::to_vec(result)?;
retry_async("PUT", &url, self.retries, || async {
let response = self
.request(reqwest::Method::PUT, url.clone(), ACTION_RESULT_MEDIA_TYPE)
.await?
.header(CONTENT_TYPE, ACTION_RESULT_MEDIA_TYPE)
.header(IF_NONE_MATCH, "*")
.body(body.clone())
.send()
.await?;
if response.status() != StatusCode::PRECONDITION_FAILED {
response.error_for_status()?;View on GitHub (pinned to 533346cc37)