Help Center> Face Recognition Service> FAQ> API FAQs> What Do I Do If the Error Message "APIG.0101 API not exist or not published to environment" Is Displayed During API Calling?

What Do I Do If the Error Message "APIG.0101 API not exist or not published to environment" Is Displayed During API Calling?

Symptom

When an API is called, the error message "APIG.0101 The API does not exist or has not been published in the environment" is displayed.

This error indicates that the request address or URL used for calling the API does not exist or is not published.

Solution

For example, error APIG.0101 is reported when the service status query API is called. The solution is as follows:

  1. Obtain a correct example request by referring to the API Reference.
    # Query the service status.
    https://{endpoint}/v1/{project_id}/subscribe
  2. Replace {endpoint} in the example request with the actual endpoint. For details about the request address of FRS, see Endpoints.

    For example, if your service is deployed in the CN North-Beijing4 region, the endpoint of the region is face.cn-north-4.myhuaweicloud.com.

  3. Replace {project_id} in the example request with the actual project ID. For details about how to obtain the project ID, see Obtaining Account, IAM User, Group, Project, Region, and Agency Information.

For details about the URL, see Making an API Request.