Antd.CloseGroupShortfallError exception (antd v0.4.1)

Copy Markdown View Source

Too few of an address's close group answered, or took a write, for the result to be the network's (HTTP 503 with code: "CLOSE_GROUP_SHORTFALL"; gRPC UNAVAILABLE tagged x-antd-error-code: CLOSE_GROUP_SHORTFALL).

Reads are free to retry; a shortfall during an update in flight or churn usually clears. A paid write is not, except where retryable is true: a pointer finalize kept the paid state, and calling pointer_finalize again with the same upload_id stores it against the same payment. Bound that loop.

Over REST retryable is the error body's retryable (true only when it is JSON true). Over gRPC it is true when the status message closes with the daemon's (paid attempt retained...) hint.

This is its own exception module, not an Antd.ServiceUnavailableError (REST) or an Antd.NetworkError (gRPC UNAVAILABLE).

Summary

Types

t()

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