Updated on 2022-02-22 GMT+08:00

Error Codes

The HiLens Framework returns error codes using enumeration types. If an error occurs when an API is called and an error code is returned, you can view the following enumeration types to obtain the error information:

Table 1 Error codes

Error Code

Description

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 permission to access the file.

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 timeout.

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 constraints.

INVALID_DST_SIZE

During image processing, the dst size does not meet the constraints.

MPP_PROCESS_FAILED

The MPP fails to process images.

WEBSOCKET_ERROR

WebSocket error.

CONFIG_FILE_ERROR

Incorrect configuration file.

INVALID_PARAM

Incorrect parameter.