ErrorCode

public enum ErrorCode

RongIMClient ErrorCode

Entries

Link copied to clipboard

The application did not call the connect() method before invoking business operations.

Link copied to clipboard

Parameter exception.

Link copied to clipboard

IPC process terminated unexpectedly.

Link copied to clipboard

Unknown error.

Link copied to clipboard

Connection established.

Link copied to clipboard

*Source Message sending frequency is too high. Only 5 messages are allowed per second.

Link copied to clipboard

Operation is prohibited.

Link copied to clipboard

Operation not supported.

Link copied to clipboard

The request has exceeded the rate limit. Please try again later.

Link copied to clipboard

Cloud storage for historical messages is not enabled.

Link copied to clipboard

Chatroom has been reset

Link copied to clipboard

Not in this discussion group.

Link copied to clipboard

The sent message contains sensitive words (the sender fails to send, and the receiver will not receive the message).

Link copied to clipboard

The sensitive words in the message have been replaced (the recipient will receive the message after replacement).

Link copied to clipboard

Not in this group.

Link copied to clipboard

Has been muted in the group.

Link copied to clipboard

Not in this chatroom.

Link copied to clipboard

In this chatroom, the user has been muted

Link copied to clipboard

Indicates that the user has been kicked out and banned from joining the chatroom.

Link copied to clipboard

The chatroom does not exist

Link copied to clipboard

Chatroom member limit exceeded. By default, there is no limit on the number of chatroom members, but developers can submit a ticket to request a member limit for the App Key. When the member limit is set, this error code will be returned if the number of members exceeds the limit when calling the join chatroom API.

Link copied to clipboard

The chatroom interface parameters are invalid.

Link copied to clipboard

An issue occurred while synchronizing the operation with the server, possibly due to excessive frequency of operations. If this error occurs, please retry after a delay of 0.5 seconds.

Link copied to clipboard

The official account is defaulted to be followed. Regarding the conversation type: ConversationType_APP_PUBLIC_SERVICE.

Link copied to clipboard

Official Account is followed, for conversation type:ConversationType_APP_PUBLIC_SERVICE

Link copied to clipboard

Official Account is unfollowed by default. For conversation type: ConversationType_APP_PUBLIC_SERVICE.

Link copied to clipboard

The official account has been unfollowed. Regarding the conversation type: ConversationType_APP_PUBLIC_SERVICE.

Link copied to clipboard

Not following this Official Account, for conversation type: ConversationType_APP_PUBLIC_SERVICE

Link copied to clipboard

Invalid Official Account. (The official account session identified by the conversation type and ID is invalid.)

Link copied to clipboard

The official account is defaulted to be followed. For the conversation type: ConversationType_PUBLIC_SERVICE.

Link copied to clipboard

The official account has been followed. Regarding the conversation type: ConversationType_PUBLIC_SERVICE.

Link copied to clipboard

The official account is defaulted to be unfollowed. For the conversation type: ConversationType_PUBLIC_SERVICE.

Link copied to clipboard

The official account has been unfollowed. Regarding the conversation type: ConversationType_PUBLIC_SERVICE.

Link copied to clipboard

The official account is not followed. Regarding the conversation type: ConversationType_PUBLIC_SERVICE.

Link copied to clipboard

The message failed to send because you have been added to the recipient's blocklist.

Link copied to clipboard

Not in the recipient's allowlist, message sending failed.

Link copied to clipboard

The connection has been released.

Link copied to clipboard

Connection Unavailable

Link copied to clipboard

The client sends a message request, and the RCserver responds with a timeout.

Link copied to clipboard

Navigation HTTP request failed

Link copied to clipboard

Failed to request connection to the navigation address.

Link copied to clipboard

Failed to receive data after requesting connection to the navigation address.

Link copied to clipboard

Navigation HTTP request failed

Link copied to clipboard

Navigation HTTP response data format error

Link copied to clipboard

After parsing the navigation data, no valid IP address was found.

Link copied to clipboard

Failed to create Socket connection

Link copied to clipboard

Socket disconnected

Link copied to clipboard

PING Failed

Link copied to clipboard

PING Timeout

Link copied to clipboard

Signaling failed to send

Link copied to clipboard

Connection too frequent

Link copied to clipboard

The message size exceeds the limit. The message body (content serialized into JSON format) has a maximum size of 128k bytes.

Link copied to clipboard

Network connection is unavailable.

Link copied to clipboard

Connection ACK timeout

Link copied to clipboard

Incorrect Signaling Version

Link copied to clipboard

Invalid App Key

Link copied to clipboard

The server is currently unavailable (reserved)

Link copied to clipboard
Link copied to clipboard

App verification failed

Link copied to clipboard

Connection Redirection

Link copied to clipboard

does not match the registered information in the backend.

Link copied to clipboard

App Key is banned or deleted

Link copied to clipboard

User is banned

Link copied to clipboard

User Kicked Offline

Link copied to clipboard

The connection to the server has been disconnected; the user is banned.

Link copied to clipboard

Token Expired

Link copied to clipboard

User logged in on another device

Link copied to clipboard

The number of simultaneously online users exceeds the set limit

Link copied to clipboard

Environment verification failed

Link copied to clipboard
Link copied to clipboard

The token has already been used and cannot be used for connection. A one-time token can only be used once; subsequent attempts will result in this error.

Link copied to clipboard

User has been deactivated

Link copied to clipboard

Internal protocol layer error.

Link copied to clipboard

Internal protocol layer error.

Link copied to clipboard

Connection Refused

Link copied to clipboard

The connection was interrupted by the server, possibly because the operator deemed the link illegal or invalid and disconnected it directly. After this error code occurs, the SDK will automatically trigger a reconnection, and no action is required from the app side.

Link copied to clipboard

SDK is not initialized

Link copied to clipboard

Database error.

Link copied to clipboard

Channel is invalid.

Link copied to clipboard

Reconnection succeeded.

Link copied to clipboard

Connection in progress, calling connect again will be rejected.

Link copied to clipboard

Conversation not in tag

Link copied to clipboard

The chatroom cloud storage service is not enabled.

Link copied to clipboard

Exceeds the maximum number of state settings for a chatroom. By default, a chatroom can have up to 100 settings.

Link copied to clipboard

Illegal overwrite of status value in chatroom

Link copied to clipboard

Exceeds the frequency limit for setting chatroom status. A single chatroom can set and delete status up to 100 times per second.

Link copied to clipboard

The chatroom status storage feature is not enabled. Please contact the business team to enable it.

Link copied to clipboard

The chatroom status value does not exist

Link copied to clipboard

*Chatroom Batch Set or Delete KV Partially Unsuccessful**

Link copied to clipboard

Exceeding the limit for batch setting or deleting KV pairs in the chatroom (maximum 10 at a time)

Link copied to clipboard

The connection already exists.

Link copied to clipboard

Chatroom status not synchronized

Link copied to clipboard

Invalid recall message parameters.

Link copied to clipboard

IMLib can recall messages sent by oneself or others. The IM service has a switch to control whether only messages sent by oneself can be recalled. When this switch is enabled, attempting to recall messages sent by others will result in this error. @Since 5.2.4

Link copied to clipboard

Invalid remote push settings parameters.

Link copied to clipboard

Small video service is not enabled. Please contact our sales team to enable it.

Link copied to clipboard

The duration of the short video exceeds the limit

Link copied to clipboard

GIF message file size exceeds the limit

Link copied to clipboard

Incorrect connection environment (RCpublic cloud SDK cannot connect to a private cloud environment).

Link copied to clipboard

SDK internal connection timeout. This error occurs when calling the connect interface with an invalid timeLimit value.

Link copied to clipboard

The requested public service information does not exist.

Link copied to clipboard

The message cannot be extended. Only one-to-one and group chats are supported. Other message types will return this error.

Link copied to clipboard

Message extension failed.

Link copied to clipboard

The message extension size exceeds the limit. By default, the key length in the message extension dictionary should not exceed 32 characters, and the value length should not exceed 64 characters. The number of key-value pairs in the Expansion should not exceed 300.

Link copied to clipboard

Media message media file HTTP upload failed

Link copied to clipboard

Video compression failed

Link copied to clipboard

The message returned by the message processing interface is null

Link copied to clipboard

Media file upload failed. The media file does not exist or its size is 0.

Link copied to clipboard

Files have expired or been cleared. Short video files are stored by default for 7 days, while other files are stored by default for 6 months. They will be automatically cleared upon expiration. If short video files need to be stored for a longer period, you can enable the Short Video Plus feature in the **Service Management -> Short Video -> Service Settings** section of the [RCDeveloper Console](https://developer.rongcloud.cn/advance/index). After enabling this feature, short video files will be stored by default for 6 months.

Properties

Link copied to clipboard
public int code
Link copied to clipboard
public String msg

Functions

Link copied to clipboard
public String getMessage()
Retrieves the error message.
Link copied to clipboard
public int getValue()
Retrieves the error code value.
Link copied to clipboard
public static RongIMClient.ErrorCode valueOf(int code)
Sets the error code value.
public static RongIMClient.ErrorCode valueOf(String name)

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.