Updated on 2023-11-10 GMT+08:00

Error Codes

If an error occurs during API calling, no result is returned. You can locate the cause of an error using the error codes of each API. When an API call fails, HTTPS status code 4xx or 5xx is returned. The returned message body contains a specific error code and error message. If you fail to locate the cause of the error, contact the Huawei Cloudcustomer service and provide the error code for troubleshooting.

Format of an Error Response Body

If an error occurs during API calling, an error code and a message will be displayed. The following shows an error response body.

{ 

    "error_code": "SIS.0032",
    "error_msg": "'audio_format' is invalid"
}

In the response body, error_code is an error code, and error_msg provides information about the error.

Error Code Description

If an error code starting with APIGW is returned after you call an API, rectify the fault by referring to the instructions provided in API Gateway Error Codes.

Error Code

Description

Solution

SIS.0001

Connection error. For example, the connection to OBS or Redis is incorrect.

Contact technical support engineers.

SIS.0003

The token does not contain user information, the agency has been created, or an internal error occurs.

Contact technical support engineers.

SIS.0100

Internal service error.

Contact technical support engineers.

SIS.0101

The authentication token is abnormal.

  • Check whether the value of X-Auth-Token in the request header is correct.
  • Check whether the token request parameters are correct.
  • Check whether the value of projectId in the URL is correct.
  • When obtaining a token, add the scope parameter to the request to obtain a project-level token. Do not use a global token when calling SIS.

SIS.0102

Authentication information is missing.

Check whether the X-Auth-Token field in the request header exists.

SIS.0103

Real-name authentication is missing.

Perform real-name authentication. No authentication is required for HUAWEI CLOUD (International).

SIS.0012

Fields required in the request body are missing.

Check whether mandatory fields of request parameters are missing.

SIS.0031

The request parameter is not supported.

Check whether the request parameters are correct.

SIS.0032

The JSON format of the request body is incorrect.

Check whether the JSON format of the request body is correct.

  • Ensure that the value of audio_format is valid and is same as the format of the audio to be identified. If you are not sure about the value of audio_format when calling the Long Audio Transcription API, set the value to auto for debugging.
  • If the error message data base64 encode invalid is displayed, check whether the character string is correct after Base64 encoding, for example, whether there are extra spaces or incorrect characters.

SIS.0022

The product cannot be subscribed to.

The product cannot be purchased. Contact the technical support.

SIS.0023

Failed to subscribe to the product.

Failed to purchase the product. Contact the technical support.

SIS.0024

Updating restrictions is not allowed.

The restrictions cannot be updated. Contact the technical support.

SIS.0033

The engine response timed out.

Contact technical support engineers.

SIS.0201

Failed to find the hot word table.

Check whether the request parameters are correct or contact technical support.

SIS.0203

Some hot words are too long or invalid.

Correct the invalid hot words based on the error information.

SIS.0204

The hot word table name already exists.

Modify the hot word table name.

SIS.0205

The language is not supported.

Modify the hot word table.

SIS.0206

Failed to save the hot word.

Contact technical support engineers.

SIS.0207

The hot word content is damaged.

Contact technical support engineers.

SIS.0208

There are too many hot word tables.

Delete unnecessary hot word tables. If you need to configure more hot word tables, contact the customer service personnel.

SIS.0301

The input audio_format parameter does not match the model.

Check whether the request parameters are correct.

SIS.0302

The internal service is abnormal.

Contact technical support engineers.

SIS.0303

Failed to connect to the engine.

Try again. If the problem occurs multiple times, contact professional engineers.

SIS.0304

Audio waiting timed out.

This error is reported if the client does not send a voice message for a long time and the server does not receive the voice message within 20 seconds.

  • Reduce the data sending interval.
  • Check the code to view whether there is too much idle time after an audio segment is sent.
  • Check whether an ending request is sent and the client is closed.

SIS.0305

An exception occurred during speech recognition.

Try again or contact technical support engineers.

SIS.0306

An exception occurred during speech recognition.

Try again or contact technical support engineers.

SIS.0307

An exception occurred during speech recognition.

Try again or contact technical support engineers.

SIS.0309

The real-time speech recognition audio duration exceeds the upper limit.

Check whether the audio duration is supported. In the short-stream mode, the audio duration cannot exceed 60 seconds. In the continue-stream or sentence-stream mode, the audio duration cannot exceed 5 hours.

SIS.0401

An exception occurred during audio synthesis.

Try again or contact technical support engineers.

SIS.0402

The input sample_rate parameter for TTS is invalid.

Check whether the input sample_rate for TTS matches the sampling ratio supported by the value range of property.

SIS.0410

The input audio_format parameter for TTS is invalid.

Check whether the request parameters are correct.

SIS.0411

The input property parameter for TTS is invalid.

Check whether the request parameters are correct.

SIS.0412

Connection to the TTS engine timed out.

Try again or contact technical support engineers.

SIS.0413

Internal TTS error occurred.

Try again or contact technical support engineers.

SIS.0414

TTS waiting timed out.

Try again or contact technical support engineers.

SIS.0415

The TTS request body is incorrect.

Check whether the request body is correct.

SIS.0416

Waiting for the user to send the text timed out.

Resend the text you want to convert to speech.

SIS.0417

TTS engine error.

Try again or contact technical support engineers.

SIS.0418

TA TTS task is being processed.

Do not repeatedly send the command for starting a TTS task.

SIS.0419

Invalid ssml.

The input text contains invalid characters.

SIS.0506

Failed to find a proxy.

  • Check whether the network has a proxy.
  • Check whether OBS access is authorized.

SIS.0533

The request parameters of Long Audio Transcription are incorrect.

Check whether the request parameters are correct.

SIS.0534

The request body of Long Audio Transcription is incorrect.

Check whether the request body is correct.

  • If data syntax error! is displayed, check whether the data format or encoding format meets the requirements.
  • If asr data url param is invalid is displayed, use the path of the audio file in an OBS bucket and ensure that the region of the OBS service is the same as that of the requested service.

SIS.0535

The requested file type of Long Audio Transcription is not supported.

  • Ensure that the value of audio_format is valid.
  • Ensure that the format of the audio to be identified is the same as the value of audio_format.

SIS.0536

The number of submitted jobs of Long Audio Transcription reached the upper limit.

Try again later.

SIS.0537

The size of an audio recording is too large.

Reduce the file size. For example, divide it into multiple files.

SIS.0538

The Long Audio Transcription job timed out.

Try again later.

SIS.0601

The input parameter of ASR or TTS is invalid.

Check whether the request parameters are correct and complete.

SIS.0602

The speech format for ASR is not supported.

Check whether the encoding format of the submitted speech is supported.

SIS.0604

The size of the ASR file does not meet the requirements or the number of words to be synthesized in TTS exceeds the upper limit.

Reduce the size of the speech file or the number of words to be synthesized. Note that when the OBS link is used for submission, the file size increases after Base64 encoding.

SIS.0605

An ASR or TTS internal error occurred.

Try again or contact technical support engineers.

SIS.0608

Invalid URL.

Check the URL and ensure that the OBS link of the corresponding region is used.

SIS.0609

Failed to download the audio file from the specified URL.

Check whether the OBS is in the public-read status or whether OBS authentication is enabled.

SIS.0701

The size of the input audio, video, or exam paper exceeds the upper limit.

Refer to the error information and API document to reduce the size of the audio, video, or exam paper.

SIS.0702

The input parameter is invalid.

For example, the assessment language or mode is not supported. The audio or video format is not supported. The exam paper is invalid.

Refer to the error information and API document to enter correct parameters.

SIS.30003

Failed to download the audio from OBS.

Check whether the audio on OBS can be accessed.

SIS.30004

Failed to download the hot word file.

Check whether the hot word file exists.

SIS.30006

Failed to decode the audio.

Check whether the format of the audio file is correct and whether the audio file is empty.

SIS.30007

The transcription engine failed to load hot words.

Check whether the hot word file exists.

SIS.30008

The transcription engine failed to transcript the audio.

Check whether the parameters are correct or contact the technical support.

SIS.0541

The property and format parameters of Audio Transcription do not match.

Check whether the formats of Property and format are correct.

  • Property and format do not match!