Error code scope_needs_own_app (HTTP 422)
What Synq's `scope_needs_own_app` error code means, when the API answers HTTP 422 Unprocessable Content with it, and how to fix it.
A scope that rides only on the tenant's own app at the provider, never Synq's shared one, asked where sign-ins don't go through one: set the brand's or the org's own app first (PUT …/sign-in-providers/{provider}/app; at GitHub, an OAuth App with app_type: oauth_app). An org's own scopes need the org's own app.
What to do
Set your own app at the provider where the scopes are set, then set the scopes again.
| Field | Value |
|---|---|
code | scope_needs_own_app |
status | 422 Unprocessable Content |
title | Scope needs own app |
Synq's APIs answer errors with a problem document (RFC 9457, application/problem+json). Its type is the address of this page, and its code is scope_needs_own_app. Branch on code, never on title or detail: a code never changes once it ships, while the words may.
{
"type": "…/errors/scope_needs_own_app",
"title": "Scope needs own app",
"status": 422,
"code": "scope_needs_own_app"
}See every error code. Still stuck? Support says where to write, what to send and where Synq's status page is.
Error code scope_unavailable (HTTP 422)
What Synq's `scope_unavailable` error code means, when the API answers HTTP 422 Unprocessable Content with it, and how to fix it.
Error code provider_url_unsafe (HTTP 422)
What Synq's `provider_url_unsafe` error code means, when the API answers HTTP 422 Unprocessable Content with it, and how to fix it.