Antd.ConflictError exception (antd v0.4.1)

Copy Markdown View Source

The request conflicts with the resource's current state (HTTP 409 with code: "CONFLICT"; gRPC ABORTED tagged x-antd-error-code: CONFLICT).

For pointers, two cases share this code, and it does not say which one happened or whether anything was paid:

  • a write while a prepared write to the same pointer awaits payment is refused before paying (finalize the prepared write, or wait for it to expire);
  • an update that lost to a newer state while it was in flight may already have been paid for.

Read the pointer again and check what was paid before submitting another paid write.

Summary

Types

t()

@type t() :: %Antd.ConflictError{
  __exception__: true,
  message: String.t(),
  status_code: integer()
}