X_IDEMPOTENCY_REPLAYED_FAILURE
Means
a retried Idempotency-Key replays a first attempt that failed after it may have committed
Typical cause
the first attempt under this key threw and the store kept no detail of it — so nothing ran here, and what the caller is being handed is a recorded outcome, not a second execution. When the store did keep the first attempt's code, that code is replayed instead of this one; meta.replayed is true either way
Fix
read the first attempt in the logs, then send a fresh Idempotency-Key once the cause is fixed