目录

ArkTS Component Error Codes

ArkTS component error codes include universal error codes, utils error codes, error codes of dependent kits, and component-specific error codes.

Universal Error Codes

Map Kit error codes

Ability Kit error codes

Account Kit error codes

Live View Kit error codes

Push Kit error codes

Utils Error Codes

REST API Error Codes

This section describes only module-specific error codes.

10004 System Internal Error

Message

Internal error.

Description

Internal system error.

Possible causes

Internal system error.

Solution

Ensure that the network connection is normal. If the problem persists and the error is reported for the service updates authorization code button, also ensure that you have initiated an application for the corresponding service scenario.

10006 Failed to Obtain Shared Data

Message

Failed to get data.

Description

Failed to obtain shared data.

Possible causes

Internal system error.

Solution

Ensure that the network environment is normal. If the problem persists, perform further analysis based on logs.

10008 Caller Not an Atomic Service

Message

Not atomic service.

Description

The caller is not an atomic service.

Possible causes

The caller of the API is not an atomic service.

Solution

Ensure that the API caller is an atomic service. For details, please refer to Creating an Atomic Service Project.

1007601001 Invalid Sharing Parameter Value

Message

Invalid share parameter value. Possible causes: 1. The uniformDataType parameter verification failed; 2. Invalid content parameter format.

Description

Invalid sharing parameter value.

Possible causes

  1. The value of the sharing parameter uniformDataType is not supported.

  2. The format of the content parameter is invalid.

Solution

  1. Change the value of uniformDataType based on the required value range.

  2. Ensure that the format of the content parameter is correct.

1003500012 Number of Live View Subscriptions Exceeds the Upper Limit

Message

The number of subscription times exceeds the upper limit of 2000.

Description

The number of live view subscriptions exceeds the upper limit.

Possible causes

A maximum of 2000 subscriptions are allowed for each app on the device.

Solution

Adjust the number of subscriptions.

1003500013 Invalid Live View Subscription Scenario

Message

Invalid event type.

Description

The live view subscription scenario is invalid.

Possible causes

The value of event is incorrect.

Solution

Check whether the value of the input parameter event in SubscribeLiveViewParam is SUBSCRIBE_TIMER.

1003500014 The Period Between the Current Time and Live View Alert Time Is Too Long

Message

Time exceeds valid period.

Description

The period between the current time and live view alert time is too long.

Possible causes

The period between the current time and the time specified by alertTime exceeds 90 days.

Solution

Check the alertTime parameter in SubscribeLiveViewParam.

1003500015 Live View Subscription Failed

Message

Subscribe failed.

Description

Live view subscription failed.

Possible causes

An internal error occurred on the Push cloud.

Solution

Try again or submit a ticket online.

1003500016 Frequency of Live View Subscription Requests Exceeds the Upper Limit

Message

Request subscribe liveView exceed.

Description

The frequency of live view subscription requests exceeds the upper limit.

Possible causes

A subscription request is initiated within 200 ms of the previous one.

Solution

Adjust the subscription frequency.