目录

ArkTS API Error Codes

This section describes only module-specific error codes. If a universal error code is returned, handle it by referring to Universal Error Codes.

1008210001 Network Connection Error for Cloud Functions

Message

Network connection error.

Description

Network connection error for Cloud Functions.

Possible causes

  1. A proxy server is configured for the network.

  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

  1. For real devices, if the error message contains "create http task error", the signature verification may fail due to an incorrect signing mode or network problems.

  2. For the Emulator, if the error message contains "create http task error", this error may be caused by missing Emulator debug credentials.

  3. Internal system error.

Solution

  1. Verify that the app signing mode is correct. Currently, Cloud Foundation Kit supports two signing modes: automatically signing an app associated with a registered app or manual signing.

  2. Check the network.

  3. Troubleshoot by referring to Debugging on the Emulator.

  4. If no exception is found, try again later.

1008211001 Error on the Cloud Functions Server

Message

Server error.

Description

Error on the Cloud Functions server.

Possible causes

The Cloud Functions server encounters an exception or authentication fails.

Solution

Troubleshoot the issue based on the error information by referring to Cloud Functions server error codes.

1008220001 Network Connection Error for Cloud Storage

Message

Network connection error.

Description

Network connection error for Cloud Storage.

Possible causes

  1. A proxy server is configured for the network.

  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

  1. For real devices, if the error message contains "create http task error", the signature verification may fail due to an incorrect signing mode or network problems.

  2. For the Emulator, if the error message contains "create http task error", this error may be caused by missing Emulator debug credentials.

  3. Internal system error.

Solution

  1. Verify that the app signing mode is correct. Currently, Cloud Foundation Kit supports two signing modes: automatically signing an app associated with a registered app or manual signing.

  2. Check the network.

  3. Troubleshoot by referring to Debugging on the Emulator.

  4. If no exception is found, try again later.

1008221001 Error on the Cloud Storage Server

Message

Server error.

Description

Error on the Cloud Storage server.

Possible causes

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

Solution

  1. Troubleshoot the issue by referring to Cloud Storage FAQs.

  2. Troubleshoot the issue based on the error information by referring to Cloud Storage server error codes.

1008230001 Cloud DB Network Connection Error

Message

Network connection error.

Description

Cloud DB network connection error.

Possible causes

  1. A proxy server is configured for the network.

  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

  1. For real devices, if the error message contains "create http task error", the signature verification may fail due to an incorrect signing mode or network problems.

  2. For the Emulator, if the error message contains "create http task error", this error may be caused by missing Emulator debug credentials.

  3. Internal system error.

Solution

  1. Verify that the app signing mode is correct. Currently, Cloud Foundation Kit supports two signing modes: automatically signing an app associated with a registered app or manual signing.

  2. Check the network.

  3. Troubleshoot by referring to Debugging on the Emulator.

  4. If no exception is found, try again later.

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 the one created in the code. The possible cause is that the storage object on the cloud has changed, but the schema.json file is not exported again.

  3. The schema.json file exists in both the AppScope and entry directories. When you update the storage object in the schema.json file in the entry directory, the update will be overwritten by the schema.json file in the AppScope directory during compilation and build. For details, please refer to Resource Categories.

Solution

  1. Download the schema.json file and save it to the rawfile directory.

  2. Ensure that the object in the schema.json file is consistent with the storage object created in the code. For details, please refer to Importing an Object Type File.

  3. Move the schema.json file from the entry directory to the AppScope directory for maintenance.

1008230003 Cloud DB Code Object Error

Message

Natural object error.

Description

Cloud DB code object error.

Possible causes

The storage object name passed in the query 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 encounters an exception or authentication fails.

Solution

Troubleshoot the issue based on the error information by referring to Cloud DB server error codes.