Operations

Troubleshooting

Symptom, likely cause, fix — the failures that account for almost every support thread.

invalid_client on 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_grant immediately 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 http where 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, Secure or a domain mismatch
FixCheck the Set-Cookie response, not the redirect
403 service_token_required
Most likely causeA user token was sent to /app/*
FixMint a client_credentials token for appcenter: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 causeSKIP_JOB_QUEUE=true in development
FixStart the queue, or use /webhooks/:id/test
Deliveries exhausted and data is stale
Most likely causeThe receiver was down longer than the retry window
FixReconcile by pulling; redeliver for one known payload
409 VERSION_CONFLICT on 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
429 under 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; treat accountid and userid as selectors only

What to capture before asking for help

  • The status code, the code field and the exact message.
  • 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 version you 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.

support@versified.com.gh
32 pages in this documentation