目录

ArkTS API Error Codes

  • This section describes only module-specific error codes. For details about universal error codes, please refer to Universal Error Codes.
  • The error code mapping of Remote Communication Kit is in the format of 1007900000 + Curl error code. This section lists common error codes of Remote Communication Kit. For details about more error codes, please refer to Curl Error Codes.

1007900001 Unsupported Protocol

Message

Unsupported protocol.

Description

The server does not support this protocol version.

Possible causes

The input protocol version is not supported by the server.

Solution

Specify a protocol version supported by the server.

1007900003 Invalid URL Format

Message

URL using bad/illegal format or missing URL.

Description

Invalid URL format.

Possible causes

The format of the input URL is incorrect.

Solution

Specify a URL of the correct format.

1007900005 Failed to Resolve the Domain Name of the Proxy Server

Message

Couldn't resolve proxy name.

Description

The domain name of the proxy server cannot be resolved.

Possible causes

The URL of the proxy server is incorrect.

Solution

Specify a URL of the correct format.

1007900006 Domain Name Resolution Failed

Message

Couldn't resolve host name.

Description

The domain name of the server cannot be resolved.

Possible causes

  1. The URL of the server is incorrect.
  2. The network is disconnected.

Solution

  1. Specify a URL of the correct format.
  2. Verify that the network is available.

1007900007 Unable to Connect to the Server

Message

Couldn't connect to server.

Description

The server cannot be connected.

Possible causes

The format of the input URL is incorrect.

Solution

Specify a URL of the correct format.

1007900008 Invalid Data Returned by the Server

Message

Weird server reply.

Description

The server returned invalid data.

Possible causes

The server encountered an error and returned data in non-HTTP format.

Solution

Check the server implementation.

1007900009 Access to Remote Resources Denied

Message

Access denied to remote resource.

Description

Access to remote resources was rejected.

Possible causes

The access to the specified resource is rejected by the server.

Solution

Verify the HTTP request.

1007900016 HTT2 Framing Layer Error

Message

Error in the HTTP2 framing layer.

Description

An error occurred on the HTTP2 framing layer.

Possible causes

The server does not support HTTP2.

Solution

Capture and analyze packets to check whether HTTP2 is supported by the server.

1007900018 Incomplete Data Returned by the Server

Message

Transferred a partial file.

Description

The data returned by the server is incomplete.

Possible causes

This problem is probable due to server implementation.

Solution

Check the server implementation.

1007900025 Upload Failure

Message

Upload failed.

Description

Upload failed.

Possible causes

The file is too large or the network is faulty. The server may reject the STOR command if FTP is used. The error buffer usually contains the reason from the server.

Solution

Check the file size and network status.

1007900026 Failed to Open or Read Local Data from a File or App

Message

Failed to open/read local data from file/application.

Description

Failed to open or read local data from a file or app.

Possible causes

No file reading permission.

Solution

Check the permissions granted to the app.

1007900027 Insufficient Memory

Message

Out of memory.

Description

The memory is insufficient.

Possible causes

The memory is insufficient.

Solution

Check the system memory.

1007900028 Operation Timeout

Message

Timeout was reached.

Description

The operation timed out.

Possible causes

The TCP connection or the read/write operation times out.

Solution

Rectify the network connection error.

1007900047 Redirections Reached the Maximum

Message

Number of redirects hit maximum amount.

Description

The number of redirections has reached the maximum.

Possible causes

Redirections are too frequent.

Solution

Check the server implementation.

1007900052 Nothing Returned from Server

Message

Server returned nothing (no headers, no data).

Description

Nothing returned from server.

Possible causes

This problem is due to server implementation.

Solution

Check the server implementation.

1007900055 Failed to Send Network Data

Message

Failed sending data to the peer.

Description

An error occurred while sending network data to the peer end.

Possible causes

The network is faulty.

Solution

Rectify the network connection error.

1007900056 Failed to Receive Network Data

Message

Failure when receiving data from the peer.

Description

An error occurred while receiving network data from the peer end.

Possible causes

The network is faulty.

Solution

Rectify the network connection error.

1007900058 Local SSL Certificate Error

Message

Problem with the local SSL certificate.

Description

The local SSL certificate is incorrect.

Possible causes

The SSL certificate format is incorrect.

Solution

Check the format of the SSL certificate.

1007900059 Unable to Use the Specified SSL Password

Message

Couldn't use specified SSL cipher.

Description

Cannot use the specified SSL password.

Possible causes

The system does not support the cipher algorithm negotiated between the client and server.

Solution

Capture and analyze packets to check whether the cipher algorithm is supported.

1007900060 Incorrect SSL Certificate or SSH Key of the Remote Server

Message

SSL peer certificate or SSH remote key was not OK.

Description

The SSL certificate or SSH key of the remote server is incorrect.

Possible causes

It is probable that the server identity verification fails because the certificate has expired.

Solution

Check the validity period of the certificate.

1007900061 Unrecognized or Incorrect HTTP Encoding Format

Message

Unrecognized or bad HTTP Content or Transfer-Encoding.

Description

The HTTP encoding format cannot be identified or is incorrect.

Possible causes

The HTTP encoding format is incorrect.

Solution

Check the server implementation. Currently, only gzip encoding is supported.

1007900063 Maximum File Size Exceeded

Message

Maximum file size exceeded.

Description

The file size exceeded the maximum.

Possible causes

The size of the file to be downloaded exceeds 50 MB.

Solution

Check the server implementation.

1007900070 Insufficient Disk Space of the Server

Message

Disk full or allocation exceeded.

Description

The disk space of the server is insufficient.

Possible causes

The server disk is full.

Solution

Check the server disk space.

1007900073 Uploaded File Already Exists

Message

Remote file already exists.

Description

The server finds that the uploaded file already exists.

Possible causes

The uploaded file already exists.

Solution

Check the server implementation.

1007900077 No SSL CA Certificate or Access Permission

Message

Problem with the SSL CA cert (path? access rights?).

Description

The SSL CA certificate does not exist or the access permission is not available.

Possible causes

The certificate does not exist or the access permission is not available.

Solution

Check whether the SSL CA certificate exists or the access permission is granted.

1007900078 URL Requested File Not Found

Message

Remote file not found.

Description

The file requested by the specified URL does not exist.

Possible causes

The file requested by the specified URL does not exist.

Solution

Check whether the file requested by the specified URL exists.

1007900094 Identity Verification Failed

Message

An authentication function returned an error.

Description

Identity verification failed

Possible causes

The specified identity verification field does not match that on the server.

Solution

Check whether the specified identity verification field matches that on the server.

1007900999 Internal Error

Message

Internal Error.

Description

An internal error occurred.

Possible causes

An unknown error occurs in the system, and the request cannot be ;processed.

Solution

Restart the app or contact technical support for help.

1007900998 Unsupported Request Method

Message

Method not supported.

Description

The method is not supported.

Possible causes

An unsupported API method or protocol is used.

Solution

Check the code or app to ensure that the method and protocol used are correct.

1007900997 Invalid Content Type

Message

Invalid content type.

Description

Invalid content type

Possible causes

The request uses an unsupported data format or content type.

Solution

Ensure that the content type and data format in the request are correct.

1007900996 Unsupported Proxy Type

Message

Proxy type not supported.

Description

The proxy type is not supported.

Possible causes

An unsupported proxy type is used.

Solution

Change the proxy type or disable the proxy, and try again.

1007900995 Failed to Obtain the System Proxy

Message

Get system proxy failed.

Description

Failed to obtain the system proxy.

Possible causes

The proxy is not configured correctly.

Solution

Ensure that the proxy is correctly configured.

1007900993 Session Closed

Message

Session is closed.

Description

The session has been closed.

Possible causes

The session has been closed or is expired.

Solution

Open the session or create a new session, and try again.

1007900992 Request Canceled

Message

Request is canceled.

Description

The request has been canceled.

Possible causes

The request times out or the network connection is interrupted.

Solution

Initiate the request again and ensure that the network connection is correct.

1007900994 Sessions Reached Maximum

Message

Sessions number reached limit.

Description

The number of sessions has reached the maximum.

Possible causes

Too many sessions have been created. A maximum of 16 session instances can be created.

Solution

Reduce the number of sessions to 16 or less.