412 Precondition Failed means a condition the client set in its headers, such as If-Match or If-Unmodified-Since, is no longer true, so the server refused to apply the request.
HTTP/1.1 412 Precondition FailedCommon causes
- An update sent with If-Match: "etag" after someone else changed the resource.
- Conditional uploads to object storage that guard against overwriting.
How to fix it
- Fetch the resource again to get its current ETag, merge your change and retry.
- This is optimistic concurrency working as intended: it prevents lost updates.