Skip to main content

Error reference

Codes follow scope/problem. Errors thrown by the SDK are Error objects whose message is the code (sometimes followed by : status body). Server errors arrive in result.error or result.errors.

SDK errors​

CodeCause
sdk: call initScenid() before using the SDKUsed the SDK before initScenid
initScenid: client_id is required / client_secret / token_uriIncomplete service key
sdk/unknown-service: <name>resolveServiceUrl with an unknown service
sdk/as-user-missing-tokenasUser without an ID token
sdk/fetch-failedNetwork error
sdk/endpoint-invalid404 with non-JSON body
sdk/non-json-responseResponse not JSON
sdk/request-failedthrowOnError and no error in the response
sdk/invalid-token-formatJWT decoding failed
sdk/aggregate-filter-must-be-array / sdk/aggregate-sort-must-be-arrayfilter or sort is not an array

Auth errors​

CodeCause
oauth/token-request-failed: <status> <body>Client credentials rejected
auth/exchange-failed: <status> <body>Token exchange rejected
auth/complete-flow-failed: <status> <body> / auth/complete-flow-no-tokenCode exchange failed
auth/refresh-flow-failed / auth/refresh-flow-no-tokenRefresh failed
auth/jwks-fetch-failed: <status>, auth/jwks-key-not-foundJWKS problems
auth/invalid-signature, auth/invalid-issuer, auth/token-expiredverify failed
auth/unauthorizedAuthenticationError (401) from a guard

Server-side OAuth codes (in the body of the failed token request): oauth/invalid-client, oauth/invalid-client-secret, oauth/public-client-not-allowed, oauth/grant-not-allowed, oauth/unsupported-grant-type, oauth/service-key-not-provisioned, oauth/invalid-subject-token, oauth/token-audience-mismatch, oauth/tenant-mismatch, oauth/user-not-found, oauth/invalid-code, oauth/code-expired, oauth/redirect-uri-mismatch, oauth/client-mismatch, oauth/invalid-refresh-token, oauth/account-pending, oauth/account-denied, oauth/account-deactivated.

Customers​

CodeWhere
customers/missing-humanId, customers/missing-humanIds, customers/missing-entity-typeSDK argument checks
customers/group-not-foundSDK, unknown group name
entity/not-foundUnknown or invisible entity
entity/data-missing, entity/data-invalidBody has no or malformed data
entity/wrong-entity-type, entity/wrong-target-entity-typeWrong kind of entity for the route
entity/parent-not-found, entity/invalid-parentParent problems
entity/group-already-existsDuplicate group name
entity/missing-entity-typeServer: no type in list/search
entity/pagination-window-exceededPaging beyond 10,000
relationship/roles-required, relationship/role-missing, relationship/invalid-statusEmployment roles
group/config-invalid, group/features-invalidGroup config
journal/…see Journal

Insights​

CodeWhere
insights/source-not-found, source/not-foundUnknown source
source/access-forbiddenNot allowed on this source
doc/not-foundUnknown document
doc/invalid-body, doc/body-not-flat, doc/reserved-field:<name>Body problems
doc/source-type-not-supported, doc/customers-source-not-supportedSource type does not support documents
doc/field-type-mismatchA value does not fit the field type
batch/invalid-body, batch/invalid-jsonlBatch problems
scenid/empty-batchSDK: empty array
push/invalid-source-type, push/source-not-ready, push/empty-bodyPush problems
filter/unknown-operatorDocs.find on the server

Validation errors​

Validation failures answer 400 with { "errors": [{ "message": "…", "path": "name" }] }.