Error codes
Sendbird Chat SDK for Android has two types of error codes.
-
Client error codes: These errors are caused by the client app side, such as entering an incorrect or invalid parameter, or sending a request when disconnected from the Sendbird server.
-
Server error codes: These errors are caused by the Sendbird server side.
Client error codes
The following are errors labeled with six-digit integers beginning with 800 that are defined in SendbirdError.kt
.
Error | Code | Description |
---|---|---|
ERR_INVALID_INITIALIZATION | 800100 | This error occurs when the SendbirdChat initialization fails . This could be due to an invalid APP_ID or repeated initialization attempts. |
ERR_CONNECTION_REQUIRED | 800101 | The request from a client app failed because the device wasn't connected to the server. |
ERR_CONNECTION_CANCELED | 800102 | The connection is canceled or the disconnecting method is called while the |
ERR_INVALID_PARAMETER | 800110 | The parameter of the method specifies an invalid value. |
ERR_NETWORK | 800120 | The connection failed due to the unstable network or an unexpected error in the Chat SDK network library. |
ERR_NETWORK_ROUTING_ERROR | 800121 | The request routing to the server failed. |
ERR_MALFORMED_DATA | 800130 | The data format of the server response is invalid. |
ERR_MALFORMED_ERROR_DATA | 800140 | The data format of the error message is invalid due to the problem with the request. |
ERR_WRONG_CHANNEL_TYPE | 800150 | The specified channel type in the request is invalid. |
ERR_MARK_AS_READ_RATE_LIMIT_EXCEEDED | 800160 | The interval between the successive requests is less than a second. |
ERR_QUERY_IN_PROGRESS | 800170 | A retrieval request is arriving while the server is still processing the previous retrieval request for channels, messages, or users, and in preparation to send the response. |
ERR_ACK_TIMEOUT | 800180 | The server failed to send a response for the request in 10 seconds. |
ERR_LOGIN_TIMEOUT | 800190 | The server failed to send a response for the |
ERR_WEBSOCKET_CONNECTION_CLOSED | 800200 | The request was submitted while disconnected from the server. |
ERR_WEBSOCKET_CONNECTION_FAILED | 800210 | The websocket connection to the server failed to establish. |
ERR_REQUEST_FAILED | 800220 | The server failed to process the request due to an internal reason. |
ERR_FILE_UPLOAD_CANCEL_FAILED | 800230 | The request to cancel file upload failed due to an unexpected error. |
ERR_FILE_UPLOAD_CANCELED | 800240 | The file upload request is canceled. |
ERR_INITIALIZATION_CANCELED | 800103 | This error is triggered if the SDK initialization exceeds five seconds. It's a safeguard to avoid app unresponsiveness (ANR). Retrying initialization might work. |
ERR_DATABASE_ERROR | 800700 | Something went wrong with the database. While the SDK continues to operate, local caching is disabled. |
ERR_DATABASE_ERROR_ENCRYPTION | 800701 | This relates to sqlcipher issues, possibly due to an undeclared sqlcipher dependency or an erroneous encryption key. If the password is forgotten, clearing the data with |
Server error codes
The following errors are six-digit integers beginning with 400, 500, and 900.
Code | Description |
---|---|
400100 | UNEXPECTED_PARAMETER_TYPE |
400101 | UNEXPECTED_PARAMETER_TYPE |
400102 | UNEXPECTED_PARAMETER_TYPE |
400103 | UNEXPECTED_PARAMETER_TYPE |
400104 | UNEXPECTED_PARAMETER_TYPE |
400105 | MISSING_REQUIRED_PARAMETERS |
400106 | NEGATIVE_NUMBER_NOT_ALLOWED |
400108 | UNAUTHORIZED_REQUEST |
400109 | EXPIRED_PAGE_TOKEN |
400110 | PARAMETER_VALUE_LENGTH_EXCEEDED |
400111 | INVALID_VALUE |
400112 | INCOMPATIBLE_VALUES |
400113 | PARAMETER_VALUE_OUT_OF_RANGE |
400114 | INVALID_URL_OF_RESOURCE |
400151 | NOT_ALLOWED_CHARACTER |
400201 | RESOURCE_NOT_FOUND |
400202 | RESOURCE_ALREADY_EXISTS |
400203 | TOO_MANY_ITEMS_IN_PARAMETER |
400300 | DEACTIVATED_USER_NOT_ACCESSIBLE |
400301 | USER_NOT_FOUND |
400302 | INVALID_ACCESS_TOKEN |
400303 | INVALID_SESSION_KEY_VALUE |
400304 | APPLICATION_NOT_FOUND |
400305 | USER_ID_LENGTH_EXCEEDED |
400306 | PAID_QUOTA_EXCEEDED |
400307 | DOMAIN_NOT_ALLOWED |
400401 | INVALID_API_TOKEN |
400402 | MISSING_SOME_PARAMETERS |
400403 | INVALID_JSON_REQUEST_BODY |
400404 | INVALID_REQUEST_URL |
400500 | TOO_MANY_USER_WEBSOCKET_CONNECTIONS |
400501 | TOO_MANY_APPLICATION_WEBSOCKET_CONNECTIONS |
400700 | BLOCKED_USER.SEND_MESSAGE_NOT_ALLOWED |
400701 | BLOCKED_USER.INVITED_NOT_ALLOWED |
400702 | BLOCKED_USER.INVITE_NOT_ALLOWED |
400750 | BANNED_USER.ENTER_CHANNEL_NOT_ALLOWED |
400751 | BANNED_USER.ENTER_CUSTOM_CHANNEL_NOT_ALLOWED |
400920 | UNACCEPTABLE |
400930 | INVALID_ENDPOINT |
403100 | APPLICATION_NOT_AVAILABLE |
500601 | INTERNAL_ERROR.PUSH_TOKEN_NOT_REGISTERED |
500602 | INTERNAL_ERROR.PUSH_TOKEN_NOT_UNREGISTERED |
500901 | INTERNAL_ERROR |
500910 | RATE_LIMIT_EXCEEDED |
503 | SERVICE_UNAVAILABLE |
900010 | USER_LOGIN_REQUIRED |
900020 | USER_NOT_MEMBER |
900021 | USER_DEACTIVATED |
900022 | USER_NOT_OWNER_OF_MESSAGE |
900023 | PENDING_USER_SEND_MESSAGE_NOT_ALLOWED |
900025 | INVALID_MENTION_FOR_MESSAGE |
900026 | INVALID_PUSH_OPTION_FOR_MESSAGE |
900027 | TOO_MANY_META_KEY_FOR_MESSAGE |
900028 | TOO_MANY_META_VALUE_FOR_MESSAGE |
900029 | INVALID_META_ARRAY_FOR_MESSAGE |
900030 | GUEST_NOT_ALLOWED |
900040 | MUTED_USER_IN_APPLICATION_SEND_MESSAGE_NOT_ALLOWED |
900041 | MUTED_USER_IN_CHANNEL_SEND_MESSAGE_NOT_ALLOWED |
900050 | CHANNEL_FROZEN |
900060 | PROFANITY_MESSAGE_BLOCKED |
900061 | BANNED_URLS_BLOCKED |
900065 | RESTRICTED_DOMAIN_BLOCKED |
900066 | MODERATED_FILE_BLOCKED |
900070 | ENTER_DELETED_CHANNEL |
900080 | BLOCKED_USER_RECEIVE_MESSAGE_NOT_ALLOWED |
900081 | DEACTIVATED_USER_RECEIVE_MESSAGE_NOT_ALLOWED |
900090 | WRONG_CHANNEL_TYPE |
900100 | BANNED_USER_SEND_MESSAGE_NOT_ALLOWED |
900200 | TOO_MANY_MESSAGES |
900300 | MESSAGE_NOT_FOUND |
900400 | TOO_MANY_PARTICIPANTS |
900500 | CHANNEL_NOT_FOUND |