Comment on page
SDK errors
All errors triggered by the SDK have the following properties:
Field | Type | Description |
id | string | Error identifier |
message | string | Additional Message |
Tip: You can use the call isSdkError(error) to check if an error is in this format:
const identity = new Sdk(identityToken, options);
try {
const response = await identityentity.verifyPolicy(cpfInput.value, policyInput.value);
}
catch (error) {
if(identity.isSdkError(error)) {
// The error is in the format above
}
}
ID:
UNSUPPORTED
Description: Triggered when the user's browser does not support some feature necessary for the SDK to work
ID:
PERMISSION_DENIED
Description: Triggered when the SDK has not been given permission to perform an action (such as opening the camera)
ID:
ALREADY_RUNNING
Description: Triggered when the throwOnRecall flag is set in the SDK options and a verification call is made while another one is already in progress.
ID:
USER_CANCELED
Description: Triggered when the user cancels an SDK operation
ID:
NETWORK_ERROR
Description: Triggered when a request to our servers fails
ID:
INVALID_RESPONSE
Description: Triggered when a request to our servers did not get the expected result
ID:
INTERNAL_SERVER_ERROR
Description: Triggered when there was an internal error in our servers
ID:
TIMEOUT
Description: Triggered when some request from the SDK (not necessarily from the network) has exceeded the time limit
ID:
UNKNOWN
Description: Triggered when an unknown error occurred
ID:
CONTEXT_PENDING
Description: Triggered when the context is pending manual analysis.
ID:
FACE_AUTHENTICATION
Description: Triggered when an error occurs in the face authentication flow.
Last modified 1mo ago