目录

ArkTS Error Codes

This section describes only error codes of Cloud Foundation Kit. If other error codes are returned, visit the following links:

201 No Network Permission

Message

No Internet permission.

Description

The network permission is not enabled.

Possible causes

The network permission is not enabled in the project.

Solution

Add the following code to the module.json5 file of the project to enable the network permission:

"requestPermissions": [
  {
    "name": "ohos.permission.INTERNET"
  }
]

401 Parameter Error

Message

Parameter error.

Description

An input parameter for calling the API is incorrect.

Possible causes

  1. The input parameter type is inconsistent with that defined in the method.
  2. The input parameter value is out of the range defined by the method.

Solution

Check the input parameter type and value.

1008210001 Internet Connection Error for Cloud Functions

Message

Network connection error.

Description

Internet connection error for Cloud Functions.

Possible causes

  1. The network is connected to a proxy.
  2. No network is available for the device.

Solution

Check the network.

1008210009 Internal Error of the Cloud Functions Client

Message

Client internal error.

Description

Internal error of the Cloud Functions client.

Possible causes

Client internal error.

Solution

Submit a ticket online to contact technical support.

1008211001 Error on the Cloud Functions Server

Message

Server error.

Description

Error on the Cloud Functions server.

Possible causes

The Cloud Functions server is abnormal or authentication fails.

Solution

Submit a ticket online to contact technical support.

1008220001 Internet Connection Error for Cloud Storage

Message

Network connection error.

Description

Internet connection error for Cloud Storage.

Possible causes

  1. The network is connected to a proxy.
  2. No network is available for the device.

Solution

Check the network.

1008220009 Internal Error of the Cloud Storage Client

Message

Client internal error.

Description

Internal error of the Cloud Storage client.

Possible causes

Client internal error.

Solution

Submit a ticket online to contact technical support.

1008221001 Cloud-Side Execution Error for Cloud Storage

Message

Server error.

Description

Cloud-side execution error for Cloud Storage.

Possible causes

The cloud file requested by the Cloud Storage client does not exist, the cloud security rules are incorrectly configured, or the authentication fails.

Solution

Check whether the cloud resources and request are correct based on the error information.

1008230001 Cloud DB Internet Connection Error

Message

Network connection error.

Description

Cloud DB Internet connection error.

Possible causes

  1. The network is connected to a proxy.
  2. No network is available for the device.

Solution

Check the network.

1008230009 Internal Error of the Cloud DB Client

Message

Client internal error.

Description

Internal error of the Cloud DB client.

Possible causes

Client internal error.

Solution

Submit a ticket online to contact technical support.

1008230002 Incorrect Schema Configuration of Cloud DB

Message

Schema config error.

Description

The schema.json file of Cloud DB is incorrectly configured.

Possible causes

  1. The schema.json file does not exist or the file path is incorrect.
  2. The storage object in the schema.json file is inconsistent with that created in the code.

Solution

  1. Download the schema.json file and save it to the rawfile directory.
  2. Ensure that the storage object in the schema.json file is consistent with that created in the code.

1008230003 Incorrect Code Object of Cloud DB

Message

Natural object error.

Description

Incorrect code object of Cloud DB.

Possible causes

The storage object name in the code is inconsistent with the actual one.

Solution

Check whether the input storage object name is the same as the actual one.

1008231001 Cloud DB Server Error

Message

Server error.

Description

Cloud DB server error.

Possible causes

The Cloud DB server is abnormal or authentication fails.

Solution

Submit a ticket online to contact technical support.