/ SDKs / Flutter
SDKs
Chat SDKs Flutter v3
Chat SDKs Flutter
Chat SDKs
Flutter
Version 3
Sendbird Chat SDK v3 for Flutter is no longer supported as a new version is released. Check out our latest Chat SDK v4

Error Codes

Copy link

Sendbird Chat SDK for Flutter has two types of error codes:

  • Client error codes: these errors are usually caused by something the client app side did, such as incorrect or invalid parameters, or sending a request when disconnected.
  • Server error codes: these errors are usually caused by a Sendbird server side issue.

Client error codes

Copy link

The following errors that are defined in error_code.dart are six-digit integers beginning with 800.

ErrorCodeDescription

unknownError

800000

The client app encounters an unexpected exception while trying to sending a request.

invalidInitialization

800100

The initialization of the SendbirdSdk instance failed because the assigned value to the appId parameter of the initializing method isn't valid.

connectionRequired

800101

The request from a client app failed because the device isn't connected to the server.

connectionCanceled

800102

The connection is canceled or the disconnecting method is called while the SendbirdSdk instance is trying to connect to the server via the connecting method.

invalidParameter

800110

The parameter of the method specifies an invalid value.

networkError

800120

The connection failed due to the unstable network or an unexpected error in the Chat SDK network library.

networkRoutingError

800121

The request routing to the server failed.

malformedData

800130

The data format of the server response is invalid.

malformedErrorData

800140

The data format of the error message is invalid due to the problem with the request.

wrongChannelType

800150

The specified channel type in the request is invalid.

markAsReadRateLimitExceeded

800160

The interval between the successive mark-messages-as-read requests is less than a second.

queryInProgress

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.

ackTimeout

800180

The server failed to send a response for the request in 10 seconds (timed-out).

loginTimeout

800190

The server failed to send a response for the SendbirdSdk instance's login request in 10 seconds (timed-out).

webSocketConnectionClosed

800200

The request failed due to being submitted while disconnected from the server.

webSocketConnectionFailed

800210

The websocket connection to the server failed to establish.

requestFailed

800220

The server failed to process the request due to an internal reason.

fileUploadCancelFailed

800230

The request to cancel file upload failed due to an unexpected error.

fileUploadCanceled

800240

The file upload request is canceled.

fileUploadTimeout

800250

The file upload request failed because it's timed-out.

fileSizeLimitExceeded

800260

The file upload request failed because the file size was too big.

timerWasExpired

800301

A timer-related fuction failed because the time ran out.

timerWasAlreadyDone

800302

A timer-related fuction failed because the time ran out.

pendingError

800400

passedInvalidAccessToken

800500

The access token provided for the request specifies an invalid value.

sessionKeyRefreshSucceeded

800501

The session key was successfully refreshed.

sessionKeyRefreshFailed

800502

The session key wasn't refreshed.


Server error codes

Copy link

The following errors are six-digit integers beginning with 400, 500, and 900.

CodeDescription

400100
(bad request)

invalidParameteraValueString
The request specifies one or more parameters in an unexpected data type. The data type of the parameters should be string.

400101
(bad request)

nvalidParameterValueNumber
The request specifies one or more parameters in an unexpected data type. The data type of the parameters should be number.

400102
(bad request)

invalidParameterValueList
The request specifies one or more parameters in an unexpected data type. The data type of the parameters should be list.

400103
(bad request)

invalidParameterValueJson
The request specifies one or more parameters in an unexpected data type. The data type of the parameters should be JSON.

400104
(bad request)

invalidParameterValueBoolean
The request specifies one or more parameters in an unexpected data type. The data type of the parameters should be boolean.

400105
(bad request)

invalidParameterValueRequired
The request is missing one or more required parameters.

400106
(bad request)

invalidParameterValuePositive
The parameter specifies a negative number. Its value should be a positive number.

400107
(bad request)

invalidParameterValueNegative
The parameter specifies a positive number. Its value should be a negative number.

400108
(bad request)

nonAuthorized
The request isn't authorized and can't access the requested resource.

400109
(bad request)

tokenExpired
The value of the token parameter for pagination has expired.

400110
(bad request)

invalidChannelUrl
The specified channelUrl doesn't exist.

400111
(bad request)

invalidParameterValue
The request specifies an invalid value.

400151
(bad request)

unusableCharacterIncluded
The request specifies an illegal value containing special character, empty string, or white space.

400201
(bad request)

notFoundInDatabase
The resource identified with the request's resourceId parameter can't be found.

400202
(bad request)

duplicatedData
The resource identified with the request's resourceId parameter already exists.

400300
(bad request)

userDeactivated
The request can't retrieve the deactivated user data.

400301
(bad request)

userNotExist
The user identified with the request's UserId can't be found because either the user doesn't exist or has been deleted.

400302
(bad request)

accessTokenNotValid
The access token provided for the request specifies an invalid value.

400303
(bad request)

authUnknownError
The session key provided for the request specifies an invalid value.

400304
(bad request)

appIdNotValid
The application identified with the request can't be found.

400305
(bad request)

authUserIdTooLong
The length of the UserId is too long.

400306
(bad request)

authPlanQuotaExceeded
The request can't be completed because you have exceeded your paid quota.

400309
(bad request)

sessionKeyExpired
The session key of the user has been expired. A new one must be issued.

400310
(bad request)

sessionTokenRevoked
The session key of the user has been revoked. A new one must be issued.

400401
(bad request)

invalidApiToken
The API token provided for the request specifies an invalid value.

400402
(bad request)

parameterMissing
The request is missing one or more required parameters.

400403
(bad request)

invalidJsonBody
The request body is an invalid JSON.

500901
(internal server error)

internalServerError
The server encounters an unexpected exception while trying to process the request.

500910
(too many request)

rateLimitExceeded
The request can't be completed because you have exceeded your rate limits.