OxL Reference

error retry-not-idempotent

error Standard: [§10.2]

What it means#

Retrying a call that changes state is dangerous, so @retry is only allowed together with @idempotent or @readonly.

Example#

oxl✓ checked in CI
service Pay {
  @retry(3)             // <- retry-not-idempotent
  rpc charge(x: i32) -> i32
}
error
retry-not-idempotent

How to fix#

Add @idempotent(key: r => …) (the server stores the response per key) or @readonly.

See also#

OxL 1.0.0-beta · Documentation version 1.0.0-beta© OxwaldLink · generated from the Standard, the std sources and the guides