Docs

Troubleshooting

Common integration failures and how app developers should recover from them.

Closed beta@atmosphere-money/app-nodeSDK beta: 0.0.0-beta.3ATM API beta: 2026-0671 published lexicons

Compatible with the closed-beta ATM app APIs and versioned ATM event headers. Check atm-api-version on every webhook or XRPC receiver event.

Recipient not payable

Symptom
Checkout fails with RecipientNotPayable or PaymentSetupIncomplete.
Likely cause
The creator, organizer, or project has not completed payment setup in ATM.
Fix
Keep purchase buttons unavailable until the seller can accept payments, and show a clear unavailable state. Keep the attempt; never replace it automatically.

Invalid service-auth

Symptom
XRPC calls return AuthenticationRequired, BadAudience, BadScope, ExpiredToken or ReplayDetected.
Likely cause
The service-auth JWT does not match the exact ATM audience, lxm, issuer, expiry, or jti expectations.
Fix
Mint a fresh service-auth JWT for every request through your PDS: iss = app DID, aud = <brokerDid>#atmosphere_money_broker, lxm = exact method NSID, short expiry. Never cache or reuse one.

Checkout expired

Symptom
The browser returns to the app but status is expired, canceled, or still processing.
Likely cause
Checkout sessions and ticket holds are time-bounded, and browser redirects can race with processor webhooks.
Fix
Keep reconciling the original attempt from the backend: POST getCheckoutStatus with the saved status token until it is terminal. A passed expiresAt is not an outcome. Fulfil only on completed with fulfillment fulfil; verified notifications may wake an immediate poll.

Webhook signature mismatch

Symptom
Webhook verification fails even though the event came from ATM.
Likely cause
The handler parsed or transformed the body before verification, used the wrong environment secret, or checked an old rotated secret.
Fix
Verify against the raw request body and the signing secret for the event environment. Keep old secrets only for the documented rotation window.

Duplicate delivery

Symptom
The same event is delivered more than once.
Likely cause
ATM webhooks are at-least-once and redriveable by design.
Fix
Deduplicate on the stable delivery identity, not the whole body; retries carry a fresh createdAt. Acknowledge a completed duplicate, and grant each purchase once under a unique effect key.

Ticket hold unavailable

Symptom
Ticket checkout fails because a tier is sold out or a hold cannot be created.
Likely cause
Capacity changed between page render and hold creation, or another app claimed the remaining inventory.
Fix
Always call createTicketHold before checkout and update UI from the authoritative availability response.

Buyer assertion stale

Symptom
A buyer is shown as a guest or assertion verification fails.
Likely cause
The app passed only a buyerDid hint, used an expired assertion, or reused a buyer assertion JWT.
Fix
Send payerDid with a fresh payerAssertionJwt, as a pair, in a new attempt. ATM stores only verification metadata, not the raw JWT.