{% extends "_layout.html" %} {% set title = "Upload digest does not match" %} {% set status = "422 Unprocessable Content" %} {% set description = "What storage holds is not the upload the grant was issued for." %} {% block main %}

What storage holds for this job does not match the digest its upload grant was issued for. The submit carries no digest of its own: the grant bound one, and the upload is checked against it. Nothing was opened: the check comes before extraction, precisely so the bytes cannot change between the check and the use.

What to do

  1. Upload exactly the bytes the grant was issued for, to the grant, and submit again. A different archive needs a grant of its own.
  2. A transfer that was cut short is the usual cause.

The body

{
  "type":     "https://sc.example.com/server-errors/upload-digest-mismatch",
  "title":    "Upload digest does not match",
  "status":   422,
  "detail":   "...",
  "instance": "/v1/jobs/01J9...",
  "trace_id": "4bf92f3577b34da6a3ce929d0e0e4736"
}

detail is prose and may be reworded at any time. Branch on type — never parse detail.

Where it comes from

POST /v1/jobs/{id}/submit Before the archive is opened.
{% include "_help.html" %}

What this is not

archive-rejected is an archive that arrived intact and broke a rule once opened.

{% endblock %}