Error Code
RongIMClient ErrorCode
Entries
The application did not call the connect() method before invoking business operations.
Parameter exception.
IPC process terminated unexpectedly.
*Source Message sending frequency is too high. Only 5 messages are allowed per second.
Operation is prohibited.
Operation not supported.
The request has exceeded the rate limit. Please try again later.
Cloud storage for historical messages is not enabled.
Chatroom has been reset
Not in this discussion group.
The sent message contains sensitive words (the sender fails to send, and the receiver will not receive the message).
The sensitive words in the message have been replaced (the recipient will receive the message after replacement).
Not in this group.
Has been muted in the group.
Not in this chatroom.
In this chatroom, the user has been muted
Indicates that the user has been kicked out and banned from joining the chatroom.
The chatroom does not exist
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.
The chatroom interface parameters are invalid.
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.
The official account is defaulted to be followed. Regarding the conversation type: ConversationType_APP_PUBLIC_SERVICE.
Official Account is followed, for conversation type:ConversationType_APP_PUBLIC_SERVICE
Official Account is unfollowed by default. For conversation type: ConversationType_APP_PUBLIC_SERVICE.
The official account has been unfollowed. Regarding the conversation type: ConversationType_APP_PUBLIC_SERVICE.
Not following this Official Account, for conversation type: ConversationType_APP_PUBLIC_SERVICE
Invalid Official Account. (The official account session identified by the conversation type and ID is invalid.)
The official account is defaulted to be followed. For the conversation type: ConversationType_PUBLIC_SERVICE.
The official account has been followed. Regarding the conversation type: ConversationType_PUBLIC_SERVICE.
The official account is defaulted to be unfollowed. For the conversation type: ConversationType_PUBLIC_SERVICE.
The official account has been unfollowed. Regarding the conversation type: ConversationType_PUBLIC_SERVICE.
The official account is not followed. Regarding the conversation type: ConversationType_PUBLIC_SERVICE.
The message failed to send because you have been added to the recipient's blocklist.
Not in the recipient's allowlist, message sending failed.
The connection has been released.
Connection Unavailable
The client sends a message request, and the RCserver responds with a timeout.
Navigation HTTP request failed
Failed to request connection to the navigation address.
Failed to receive data after requesting connection to the navigation address.
Navigation HTTP request failed
Navigation HTTP response data format error
After parsing the navigation data, no valid IP address was found.
Failed to create Socket connection
Socket disconnected
PING Failed
PING Timeout
Signaling failed to send
Connection too frequent
The message size exceeds the limit. The message body (content serialized into JSON format) has a maximum size of 128k bytes.
Network connection is unavailable.
Connection ACK timeout
Incorrect Signaling Version
Invalid App Key
The server is currently unavailable (reserved)
Token is invalid
App verification failed
Connection Redirection
does not match the registered information in the backend.
App Key is banned or deleted
User is banned
User Kicked Offline
The connection to the server has been disconnected; the user is banned.
Token Expired
User logged in on another device
The number of simultaneously online users exceeds the set limit
Environment verification failed
.connectExt
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.
User has been deactivated
Internal protocol layer error.
Internal protocol layer error.
Connection Refused
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.
SDK is not initialized
Database error.
Channel is invalid.
Reconnection succeeded.
Connection in progress, calling connect again will be rejected.
Conversation not in tag
The chatroom cloud storage service is not enabled.
Exceeds the maximum number of state settings for a chatroom. By default, a chatroom can have up to 100 settings.
Illegal overwrite of status value in chatroom
Exceeds the frequency limit for setting chatroom status. A single chatroom can set and delete status up to 100 times per second.
The chatroom status storage feature is not enabled. Please contact the business team to enable it.
The chatroom status value does not exist
*Chatroom Batch Set or Delete KV Partially Unsuccessful**
Exceeding the limit for batch setting or deleting KV pairs in the chatroom (maximum 10 at a time)
The connection already exists.
Chatroom status not synchronized
Invalid recall message parameters.
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
Invalid remote push settings parameters.
Small video service is not enabled. Please contact our sales team to enable it.
The duration of the short video exceeds the limit
GIF message file size exceeds the limit
Incorrect connection environment (RCpublic cloud SDK cannot connect to a private cloud environment).
SDK internal connection timeout. This error occurs when calling the connect interface with an invalid timeLimit value.
The requested public service information does not exist.
The message cannot be extended. Only one-to-one and group chats are supported. Other message types will return this error.
Message extension failed.
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.
Media message media file HTTP upload failed
Video compression failed
The message returned by the message processing interface is null
Media file upload failed. The media file does not exist or its size is 0.
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
Functions
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.)
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.