Error Code

Error

Error Message

Error Code

INFER_NG

The inference fails, and NG is returned.

0000

INTERNAL_SERVICE_ERROR

An internal service error.

0001

QUEUE_INFER_TIMEOUT

Obtaining the inference result by the queue timed out.

0002

INVALID_MODEL_NAME

The value of ProjectName or TaskName is invalid.

0003

UNSUPPORTED_CONTENT_TYPE

The content type is not supported.

0004

IMAGE_SIZE_LIMIT

The image size exceeds the maximum. It must be less than or equal to {IMAGE_SIZE_LIMIT} MB.

0005

IMAGE_NUMBER_LIMIT

The number of images exceeds the maximum. It must be less than or equal to {IMAGE_NUMBER_LIMIT}.

0006

IP_NOT_ALLOWED

The IP address is not allowed. Check the IP address trustlist.

0007

PARAMETER_VERIFY_FAIL

The parameter verification fails. Check the data of [{FIELDS}].

0008

WRONG_TASK_TYPE

The value of TaskType is incorrect.

0009

INVALID_REQUEST_DATA

The requested data is invalid.

0010

REQUEST_MAX_CONTENT_LENGT

The length of the requested content exceeds {REQUEST_MAX_CONTENT_LENGT}.

0012

IMAGE_SIZE_ERROR

The requested image size exceeds the maximum. The value must be greater than 10 x 6 and less than 4096 x 4096.

0013

SEND_DATA_ERROR

Data fails to be sent during inference. Check the error based on error logs.

0014

TOO_MANY_REQUESTS

The number of requests exceeds {RATE_LIMIT}.

429

CAN_NOT_FIND_TEMPLATE

No template is found. Set a template first.

60011

INFER_TIMEOUT

Inference timed out. Modify the max_infer_timeout field to increase the timeout interval.

6010

IMAGE_SIZE_LIMIT indicates the maximum size of a single image for inference configured in the config.yaml file. The maximum size is 30 MB, that is, IMAGE_SIZE_LIMIT ≤ 30MB.

IMAGE_NUMBER_LIMIT indicates the maximum number of images allowed for a single inference configured in the config.yaml file. The maximum value is 10, that is, IMAGE_NUMBER_LIMIT ≤ 10.

RATE_LIMIT indicates the flow control configured in the config.yaml file. It defaults to 1000 times per minute.

FIELDS indicates the value of key that fails to be verified. It can be Files, CodeType, or others.

REQUEST_MAX_CONTENT_LENGT indicates the maximum body size of a request. It defaults to 31457280 bytes (30 MB).

Table 1 Error code of single-image inference during semiconductor quality inspection:

Error

Description

Error Code

SUCCESS

A successful inference.

0

COMMON_FAIL

Inference failed.

-1

DATA_VALIDATE_ERROR

Failed to verify the input data of a single image.

100

PRE_PROCESS_ERROR

Failed to preprocess the input data of a single image.

200

MODEL_INFER_ERROR

Failed to perform inference on a single image.

300

POST_PROCESS_ERROR

Failed to post-process a single image.

400