Operations
Troubleshooting
Symptom, likely cause, fix — the failures that account for almost every support thread.
invalid_clienton the token endpoint- Most likely causeWrong client id, or the secret was rotated and the old value is still deployed
- FixCheck which client the deployment holds; rotate deliberately rather than twice
invalid_grantimmediately after a refresh- Most likely causeTwo processes refreshed at once; the second presented a rotated-away token
- FixSerialize refreshes per session with a lock, and replace the stored token atomically
invalid_target- Most likely causeThe client's resource allow-list does not include the audience you requested
- FixAssign the resource to the client, then re-authorize — a refresh alone will not widen it
redirect_uri_mismatch- Most likely causeTrailing slash, different port, or
httpwhere HTTPS is required - FixRegister the exact URI; matching is literal
- Sign-in loops between your app and the provider
- Most likely causeThe provider session is fine but your session cookie is not being set — usually
SameSite,Secureor a domain mismatch - FixCheck the
Set-Cookieresponse, not the redirect 403 service_token_required- Most likely causeA user token was sent to
/app/* - FixMint a
client_credentialstoken forappcenter:service 403 app_not_bound- Most likely causeThe client is inactive, or was created outside an application
- FixRe-register under the application, or reactivate the client
- Webhooks arrive but the signature check fails
- Most likely causeThe body was parsed and re-serialised before hashing
- FixHash the raw bytes; preserve them in middleware
- Webhook deliveries stay
pending - Most likely cause
SKIP_JOB_QUEUE=truein development - FixStart the queue, or use
/webhooks/:id/test - Deliveries
exhaustedand data is stale - Most likely causeThe receiver was down longer than the retry window
- FixReconcile by pulling;
redeliverfor one known payload 409 VERSION_CONFLICTon every edit- Most likely causeYou are sending a cached version, or two screens are open
- FixRe-read immediately before the write; do not retry the same payload
429under normal traffic- Most likely causeA loop re-minting tokens or polling a list endpoint
- FixCache the token, batch reads, and back off on
Retry-After - A person sees another account's data
- Most likely causeIdentity was taken from a header rather than the token's
sub - FixResolve identity from
sub; treataccountidanduseridas selectors only
What to capture before asking for help
- The status code, the
codefield and the exactmessage. - The audience in the token you sent — decode it, do not assume.
- For webhooks: the delivery id, the attempt count and your receiver's response status.
- For catalog writes: the
versionyou sent and the one currently stored.
Never paste a token or a secret
Send the code, the status and the audience instead. A shared secret cannot be un-shared, and rotating it during an incident makes the incident longer.
Something here out of date or unclear?
The platform team answers integration questions directly.
