Updated on 2023-06-15 GMT+08:00

Error Codes

The error codes returned by the HiLens Framework are of the HiLens EC type. Table 1 describes the error codes (HiLens EC enumerated values).

Table 1 Error codes

Error Code

Description

OK=0

No error.

UNKNOWN_ERROR

Unknown error.

INIT_CURL_ERROR

CURL initialization error.

CREATE_DIR_FAILED

Failed to create folders.

OPENFILE_FAILED

Failed to open files.

RENAME_FAILED

Renaming failed.

ACCESS_FILE_FAILED

The file does not exist or you do not have the permissions to access the files.

INVALID_BUF

Invalid buffer.

COULDNT_RESOLVE_HOST

Parsing failed. Check whether the network connection is normal.

WRITE_ERROR

Write error. Check whether you have the write permission on the downloaded directory and whether the space is sufficient.

TIMEOUT

Request timed out.

AUTH_FAILED

Incorrect authentication information. Check whether the AK, SK, and token are valid.

NOT_FOUND

The object does not exist.

SERVER_ERROR

Internal service error.

OBJECT_CONFLICT

Object conflict.

APPEND_FAILED

Appending failed (for example, appending to an object that cannot be appended).

HIAI_SEND_DATA_FAILED

HiAI engine fails to send data. Analyze the fault based on logs.

HIAI_INFER_ERROR

HiAI engine inference error. Analyze the fault based on logs. The possible cause is that the actual input size does not match the input size of the model.

INVALID_SRC_SIZE

During image processing, the src size does not meet the restriction conditions.

INVALID_DST_SIZE

During image processing, the dst size does not meet the restriction conditions.

MPP_PROCESS_FAILED

The MPP fails to process images.

WEBSOCKET_ERROR

WebSocket error.

CONFIG_FILE_ERROR

Incorrect configuration file.

INVALID_PARAM

Incorrect parameter.

INIT_LOG_ERROR

Log initialization failed.

INIT_MIC_ERROR

Microphone initialization failed.

INIT_AENC_ERROR

Audio encoding initialization failed.

INIT_ADEC_ERROR

Audio decoding initialization failed.

INIT_AO_ERROR

Audio output initialization failed.

AUDIO_CHECK_ERROR

The audio file is not supported.

AUDIO_SYSTEM_INIT_FAILED

Audio system initialization failed.