Skip to content
Settings

TX_REQUIRED — operation must be performed inside a transaction

cyoda-go version 0.6.2

TX_REQUIRED — the requested operation can only be performed within an open transaction but no transaction context was provided.

HTTP: 400 Bad Request. Retryable: no.

Certain write operations that require atomic multi-step coordination mandate a transaction context. Returned when such an operation is called without a transactionId header or query parameter.

Not retryable without a transaction. The operation requires an open transaction ID passed as a header or query parameter.

  • errors
  • errors.TX_CONFLICT
  • errors.TX_COORDINATOR_NOT_CONFIGURED
  • cyoda help errors — Every error response from the Cyoda REST API carries a structured errorCode in the properties object. Multiple codes may share the same HTTP status. Programmatic handling keys on errorCode, not HTTP status.
  • cyoda help errors TX_CONFLICT — The underlying storage detected a serialization failure (e.g., PostgreSQL error 40001 or 40P01) and aborted the transaction. Normal occurrence under concurrent write load when using serializable or repeatable-read isolation.
  • cyoda help errors TX_COORDINATOR_NOT_CONFIGURED — Certain operations that span multiple storage shards require a distributed transaction coordinator. This error is returned when such an operation is attempted on a node where the coordinator component is disabled or misconfigured.