目录

What Are the Possible Causes and Solutions for 401 Parameter Check Failure?

Problem

Error code 401 is reported upon an API call, indicating a parameter check failure.

Parameter error. The value of bundleName is incorrect.

Parameter error. The value of layeredDrawableDescriptor is incorrect.

Parameter error. The value of size is incorrect.

Parameter error. The value of hasBorder is incorrect.

Parameter error. The value of pixelMap is incorrect.

Parameter error. The value of mask is incorrect.

Parameter error. The value of icons is incorrect.

Parameter error. The value of parallelNumber is incorrect.

Parameter error. The number of parameters is incorrect.

Parameter error. The type of ttf resource is error, the type must be resource.

Parameter error. The type of json resource is error, the type must be resource.

Parameter error. The ttf resource is null.

Parameter error. The json resource is null.

Parameter error. Load ttf resource failed.

Parameter error. Load json resource failed.

Parameter error. The ttf resource size is zero.

Parameter error. The json resource size is zero.

Parameter error. The json resource schema is incorrect.

Possible Causes

A mandatory parameter is missing, or the parameter type is invalid.

Solution

  1. Ensure that all the mandatory parameters are passed in and the parameter types are valid.

  2. Make sure that the resource passed in is not empty.

  3. Ensure that the format of the JSON resource passed in during the registration of the custom symbol resource is correct.