# Troubleshooting

Read the HTTP status, `error.code`, `error.message`, and `error.details` together. Save `X-Request-Id`, operation key, and resource ID for support. Redact API keys, upload URLs, award/QR tokens, and webhook secrets.

| Symptom | Action |
| --- | --- |
| 401 | Check key validity and expiry. Do not loop retries with an invalid key. |
| 403 | Check creator role, scopes, resource ownership, and account restrictions. A broader scope cannot override ownership. |
| 404 `not_found` | Branch on the code, then read the message. A path or method the API does not define answers 404 whether or not a key is sent (the message reads `no such route`); check the live `/openapi.json`. On a drop route it means the drop does not exist, was deleted or purged, is moderation-restricted, or (on `PATCH`, `pause`, `unpause` and `renew`) belongs to another creator (`GET /drops/{dropId}` and the routes that read the drop first answer 404 for a restricted drop, while its holdings, completions and awards stay readable). After a deletion its holdings, completions and awards routes answer 404 too, so stop polling them. A keyed `POST /drops` retry answers 404 with `details.dropId` when the drop that key created has since been deleted: nothing is created and no slot is used; publish again only as a new operation with a new key. |
| 400 `invalid_request` | Correct the named field. Use REST names and casing; omit unsupported/unknown fields. |
| 400 `invalid_request` with `details.reason` `REQUEST_FILTERED` | The platform request filter refused the request before it ran. Either a field carries text that looks like a file path or markup (for example `../` or `<script`): rephrase it and retry; or the platform request rate was exceeded: pause and retry later. No `Retry-After` is sent. This is never a key or permission problem; 403 still means role, scope or ownership. On `POST /drops` no daily slot stays charged: the unchanged body can be retried with the same key, but a rephrased body is a changed body and needs a new `Idempotency-Key`. |
| 422 `feature_unavailable` | Re-read `/me.capabilities`; use a supported drop shape. |
| 429 | Honor `Retry-After` when present, add jitter, and reduce parallelism. Check `/me.limits`; separate request, upload/template, and daily publish budgets apply. |
| 413 `invalid_request` | The request body is over 256KB, or on `POST /drops` the drop is over 380KB after saved card templates are expanded into it. No daily slot is used. Shrink the body or publish fewer cards; a changed body needs a new `Idempotency-Key`. |
| Signed PUT returns HTTP 412 | The object already exists (only a create-only URL, requested with `createOnly: true`, refuses a second PUT). After an uncertain first PUT, poll its existing upload ID. For a new upload, obtain a new presign; never remove `If-None-Match: *`. |
| Older GIF lacks sufficient validation evidence | Upload a new copy and wait for `valid`; do not reuse the refused raw URL. |
| Upload stays `pending` | Wait with bounded backoff; confirm the signed PUT used returned headers and actually finished. A fresh URL does not validate previously uploaded bytes. |
| Upload `rejected` or `error` | Read `reason`; fix the file and re-upload. Do not publish the invalid URL. |
| 409, publish already in progress | Retry the same key and exact original body after `Retry-After`. Another request may hold the active lease. |
| 409, key used with a different body | Recover the original saved body or start a genuinely new operation with a new key. Do not mutate an uncertain attempt. |
| 409, reconciliation required | Preserve the original key/body and contact support. Do not bypass it with a new key; the earlier publish may already exist. |
| Timeout, connection failure, 5xx during publish | Treat the outcome as unknown; retry the original key/body. Save any known drop ID and GET it. An error does not prove the backend rolled back. Exception: a 503 whose message says the publish failed and whose `details.dropId` names a drop is the definitive `publish_failed` answer; repeating that key returns the same 503, so GET the drop and follow the `publish_failed` row. |
| `read_back_unavailable` with `details.mutationApplied: true` | The mutation committed. GET the resource to inspect it before deciding whether any further write is needed. |
| `processing` persists | Continue bounded polling and inspect `slotGeneration`. Recovery requeues stale work independently of overall queue traffic. Do not create replacement drops merely because generation is slow. |
| `publish_failed` | Save the drop ID and `publishErrorCode`/`publishErrorMessage`. This is terminal for that publish attempt. Follow the service's failure guidance; a replacement publish, if desired, is a new operation with a new key. |
| `live` but cannot claim | Check `lifecycle`, schedules, `claimBlockedReason`, public supply, and `claimRequiresEventToken`. Fully reserved inventory is award-only. On a drop with `reservedSupply`, `claimable` counts the whole printed run, so compare `publicClaimedSupply` with `claimableSupply`; when the public pool is used up, `GET /drops/{dropId}/qr-token` answers 409 with `details.reason` `SOLD_OUT`. |
| `moderation_hold` | Read the hold details and follow Gather's review process; editing or resubmitting a duplicate is not a way to remove the hold. |
| Empty collection page with a cursor | Continue normal pagination. For a completion feed, an empty page marks caught-up state: save its checkpoint and resume later. |
| Webhook signature mismatch | Verify the exact raw body bytes, timestamp, all `v1` signatures, and current/overlap secret. Do not sign parsed/reformatted JSON. |
| Missing or repeated webhook | Inspect delivery history. Deduplicate event IDs, allow out-of-order delivery, and GET current state. Only a stored transition that changes the drop's public status generates an event, so a drop emits at most one `drop.deleted`. |

Completed publish results have a 24-hour retention window, not unlimited historical replay. Keep successful drop IDs durably. Unresolved attempts retain evidence without automatic expiry and stay charged until the result is established; this does not promise an immediate refund for every 5xx. After the safe 23-hour backend replay horizon, the request cannot blindly republish: reconciliation uses existing evidence or requires support review.

Use bounded retries with exponential backoff and jitter. Retry safe reads; retry keyed creates only with the same persisted key/body. Do not blanket-retry arbitrary POST actions. Stop on a terminal validation/permission error, a definitive failed publish, or a reconciliation-required response. After a client-side polling deadline, report the last observed state and resource ID accurately rather than declaring failure or success without evidence.
