Error Handling Guide

In this section, you will find all the necessary information for handling errors from the Unico IDCloud SDK in your Web applications


ErrorBio Object


This object is returned whenever an error occurs in the Web SDK.

Available Methods


Method NameDescription

getCode()

Method used to obtain the error code that occurred.

getDescription()

Method used to obtain the description of the error that occurred.


Below is a list of possible error codes from the Web SDK, in the prepareCamera method:

73000

Unknown and unexpected error. Unico SDK leverages a variety of APIs including camera, storage, security, networking, and more. This return value is a catch-all for errors experienced during normal usage of these APIs.

73001

<property> is required

73002

<property> must be an instance of <class>

73003

<class> with name <name> is not available to inject.

73004

Class type must be a function or a class.

73005

Could not find the <locale> locale.

73006

Could not find text: <text>.

73100

Unable to connect to internet.

73200

Could not find the Unico SDK JSON file.

73201

Could not load the Unico SDK JSON file.

73202

Unico SDK JSON file is invalid.

73204

Unable to initialize the SDK, please configure the environment on setEnviroment method of build.

73300

Could not authenticate this application.

73301

Could not authenticate this application.

73302

Authentication token not found.

73303

Current host is not registered.

73400

Could not initialize camera.

73401

Could not load ML models for this camera.

73402

The Key could not be verified due to connectivity issues on the user's device.

73403

This device/platform/browser/version combination is not supported by SDK.

73404

Device is in landscape display orientation. The SDK can only be used in portrait display orientation.

73405

Device blocked due to multiple failed attempts.

73406

The Session was cancelled, the SDK was opened in an IFrame.

73407

The SDK was not fully loaded.

73500

Could not get session.

73501

Could not get session.

73502

Session token not found.

73600

Could not find camera resource.

73601

Could not start camera in production mode.

74000

Invalid hexadecimal.

74001

Object is not a UnicoTheme

Below is a list of possible error codes from the Web SDK, in the openCamera method:


CodeDescription

73700

Could not parse camera response.

73704

The user pressed the cancel button and did not complete the session.

73706

The camera access is prevented because either the user has explicitly denied permission or the user's device is configured to not allow access by a device policy.

73707

The session was canceled due to the app being terminated, put to sleep, an OS notification, or the app was placed in the background.

73708

The session was cancelled because device is in landscape mode. The user experience of devices in these orientations is poor and thus portrait is required.

73710

The session was cancelled because the user was unable to complete a Session in the default allotted time or the timeout set by the developer.

73715

The session was cancelled because not all guidance images were configured.

73716

The session was cancelled because SDK was unable to start the camera on this device.

73717

The session was cancelled because the user was in a locked out state.

73718

The session was cancelled because of an unknown and unexpected error. SDK leverages a variety of iOS APIs including camera, storage, security, networking, and more. This return value is a catch-all for errors experienced during normal usage of these APIs.

73720

The developer programmatically called the session cancel API.

73721

The session was cancelled due to a device orientation change during the session.

73722

The session was cancelled because the document is not ready.

73723

The session was cancelled because there was another session in progress.

73724

The session was cancelled because the camera was opened in an iFrame.

73728

Connection error, please use HTTPS to connect.

73729

Browser not supported, please open in another browser.

73730

Unable to initialize an active liveness session because of an unknown and unexpected license error.

73731

Unable to initialize an active liveness session because the license has expired.

73732

Unable to initialize an active liveness session because Origin is not permitted.

73800

Could not encrypt response.

73900

Could not get system information.


Still need help?

Didn't find something or still need help? If you're already a client or partner, you can reach out through our Help Center.

Atualizado

Institucional

Sobre nós

Copyright © 2024 unico. All rights reserved