PUBLIC_BACKUP_UPLOAD_INCOMPLETE

The uploaded parts do not form the declared file.

Z BizKitHub Docs, dokumentacja kodów błędów API

Nazwy i opisy kodów prowadzimy po angielsku.

HTTP 400Publiczne API
On `/backup/complete` every part `1..partCount` must be listed exactly once with the `ETag` returned by its PUT, and the assembled object must have exactly the `size` declared in `/backup/start`.

Jak to rozwiązać

  1. 1

    Send all parts, each one with the ETag header value from the part upload response.

  2. 2

    Every part except the last must be exactly `partSize` bytes.

  3. 3

    Re-upload failed parts (new URLs via `/backup/part-urls`) and call `/backup/complete` again.

Przykładowa odpowiedź

API odpowiada statusem HTTP 400 i treścią w formacie JSON. Porównuj errorCode, nie message. Komunikaty mogą się zmieniać, kody pozostają stałe.

application/json
{
  "state": "error",
  "code": 400,
  "message": "The uploaded parts do not form the declared file.",
  "errorCode": "PUBLIC_BACKUP_UPLOAD_INCOMPLETE",
  "hint": "On `/backup/complete` every part `1..partCount` must be listed exactly once with the `ETag` returned by its PUT, and the assembled object must have exactly the `size` declared in `/backup/start`.",
  "documentationUrl": "https://docs.bizkithub.com/errors/PUBLIC_BACKUP_UPLOAD_INCOMPLETE"
}

Wspomniano w artykułach

Artykuły dokumentacji, które odwołują się do PUBLIC_BACKUP_UPLOAD_INCOMPLETE.

Dokumentacja referencyjna:Kody błędów API|Publiczne API|HTTP 400