目录

ArkTS API Error Codes

This section describes only module-specific error codes. For details about universal error codes, please refer to Universal Error Codes.

201 Permission Verification Failed

Error Message

Permission denied.

Error Description

Permission verification failed.

Possible Causes

The ohos.permission.KEEP_BACKGROUND_RUNNING permission is not configured.

Solution

Configure the related permission and try again.

If the error persists, submit a ticket online.

401 Parameter Check Failed

Error Message

Parameter error.

Error Description

Parameter check failed.

Possible Causes

Invalid parameters, including a missing mandatory parameter, an incorrect parameter type, or a parameter value beyond the specified range.

Solution

Verify that mandatory parameters are passed, the parameter types are correct, and the parameter values are within the specified ranges.

If the error persists, submit a ticket online.

1010600011 Initialization Failed

Error Message

Initialize failed.

Error Description

The TextReader failed to be initialized.

Possible Causes

  1. Failed to initialize the TTS engine or player.

  2. Some device models are not supported.

Solution

  1. For PCs, you need to call setWindowStage before initialization when launching the reading details page. For other types of devices, skip this step.

  2. Check whether the initialization is complete. Repeated initialization will cause this error.

If the error persists, submit a ticket online.

1010600012 Not Initialized

Error Message

The TextReader is not initialized.

Error Description

Not initialized.

Possible Causes

The TextReader is not initialized when called for playback.

Solution

Call the init method to initialize the TextReader.

If the error persists, submit a ticket online.

1010600013 TTS Audio Synthesis Error

Error Message

Text-to-speech engine error.

Error Description

TTS audio synthesis error.

Possible Causes

Abnormal audio synthesis on the TTS engine side.

Solution

You are advised to submit a ticket online.

1010600014 Player Error

Error Message

AudioRenderer play error.

Error Description

Player error.

Possible Causes

The AudioRenderer player encountered an error.

Solution

Verify that the format and content of the readInfoList parameter are correct.

If the error persists, submit a ticket online.

1010600015 Decoding Error

Error Message

Audio decode error.

Error Description

Decoding error.

Possible Causes

Audio decoding failed on the TTS engine side.

Solution

You are advised to submit a ticket online.

1010600016 Media Controller Synchronization Error

Error Message

AVSession error.

Error Description

Media controller synchronization error.

Possible Causes

An error occurs when the AVSession media controller synchronizes the cover image or playback status.

Solution

You are advised to submit a ticket online.

1010600017 Other Errors

Error Message

Other error.

Error Description

Other error.

Possible Causes

There was an exception caused by other factors.

Solution

You are advised to submit a ticket online.

1010600018 Failed to Play the Previous Track

Error Message

playPrev failed.

Error Description

Failed to play the previous track.

Possible Causes

Abnormal data.

Solution

Verify that the readInfo parameter of the previous track is correct.

If the error persists, submit a ticket online.

1010600019 Failed to Play the Next Track

Error Message

playNext failed.

Error Description

Failed to play the next track.

Possible Causes

Abnormal data.

Solution

Verify that the readInfo parameter of the next track is correct.

If the error persists, submit a ticket online.

1010600020 Abnormal Release

Error Message

Release error.

Error Description

Failed to release TextReader resources.

Possible Causes

Resources failed to be released.

Solution

Set a delay and call the release API again.

If the error persists, submit a ticket online.

1012900010 AI Caption Service Is Busy

Error Message

AI caption service is busy.

Error Description

The AI caption service is busy.

Possible Causes

The AI caption service is busy.

Solution

You are advised to submit a ticket online.

1012900011 AI Caption Controller Initialization Failed

Error Message

AI caption controller initialized failed.

Error Description

The AI caption controller failed to be initialized.

Possible Causes

The AI caption controller failed to be initialized.

Solution

Check whether other apps are using the caption tool.

You are advised to submit a ticket online.

1012900012 Audio Recognition Failed

Error Message

Audio recognition failed.

Error Description

Audio recognition failed.

Possible Causes

An error occurred during the AI-based audio recognition.

Solution

  1. Check whether the input audio is less than 640 bytes or greater than 1280 bytes.

  2. Check whether the AI engine is successfully initialized.

If the error persists, submit a ticket online.

1012900013 Incorrect Initialization Parameter

Error Message

AI caption controller init param failed.

Error Description

An AI caption initialization parameter is incorrect.

Possible Causes

A parameter such as the source language, target language, or font size in AICaptionOptions is out of range.

Solution

  1. Check whether the input parameters are within the valid range.

If the error persists, submit a ticket online.