/ SDKs / .NET
SDKs
Chat SDKs .NET v4
Chat SDKs .NET
Chat SDKs
.NET
Version 4

Error Codes

Copy link

Sendbird Chat SDK for .NET 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 SbErrorCode are six-digit integers beginning with 800.

ErrorCodeDescription

UnknownError

800000

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

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 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 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 function failed because the time ran out.

TimerWasAlreadyDone

800302

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

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)

invalidParameterValueString
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.

900010
(request failed)

socketLoginRequired
The request failed because the user isn't logged in to the server.

900020
(request failed)

socketUserNotMember
The request failed because the user isn't a member of the channel.

900021
(request failed)

socketUserDeactivated
The request failed because the user is deactivated.

900022
(request failed)

socketUserNotOwnerOfMessage
The request failed because the user has no permission to edit the other user's message.

900023
(request failed)

socketUserSendMessageNotAllowed
The request failed because the user is trying to send the messages in the channel of which they are not the member.

900025
(request failed)

socketInvalidMentionForMessage
The specified mention type in the request is invalid.

900026
(request failed)

socketInvalidPushOptionForMessage
The specified push option in the request is invalid.

900027
(request failed)

socketTooManyMetaKeyForMessage
The request failed because it specifies more meta data keys for the message than allowed.

900028
(request failed)

socketTooManyMetaValueForMessage
The request failed because it specifies more meta data values for the message than allowed.

900029
(request failed)

socketTooManyMetaArrayForMessage
The request failed because it specifies an invalid value in the meta data for the message.

900030
(request failed)

socketGuestNotAllowed
The request failed because the guest isn't allowed to perform this operation.

900040
(request failed)

socketMutedUserInApplicationSendMessageNotAllowed
The request failed because the user is muted in the application and isn't allowed to send the message.

900041
(request failed)

socketMutedUserInChannelSendMessageNotAllowed
The request failed because the user is muted in the channel and isn't allowed to send the message.

900050
(request failed)

socketChannelFrozen
The request failed because the channel is frozen and no one can send the message to the channel.

900060
(request failed)

socketProfanityMessageBlocked
The request failed because it specifies the message containing a profanity word.

900061
(request failed)

socketBannedUrlsBlocked
The request failed because it specifies the message containing a URL that isn't allowed.

900065
(request failed)

socketRestrictedDomainBlocked
The request failed because it comes from the domain that isn't allowed.

900066
(request failed)

socketModeratedFileBlocked
The request failed because it contains the file violating at least one of the content management policies.

900070
(request failed)

socketEnterDeletedChannel
The request failed because the user is trying to enter a deleted channel.

900080
(request failed)

socketBlockedUserReceiveMessageNotAllowed
The request failed because the blocking user is trying to send the message to the blocked user in a 1-to-1 distinct channel.

900081
(request failed)

socketDeactivatedUserReceiveMessageNotAllowed
The request failed because the user is trying to send the message to the deactivated user in a 1-to-1 distinct channel.

900090
(request failed)

socketWrongChannelType
The request failed because it specifies a wrong channel type.

900100
(request failed)

socketBannedUserSendMessageNotAllowed
The request failed because the user is banned from the channel and isn't allowed to send the message.

900200
(request failed)

socketTooManyMessages
The number of the sent messages exceeds the allowed amount.

900300
(request failed)

socketMessageNotFound
The request failed because the message to edit can't be retrieved.

900400
(request failed)

socketTooManyParticipants
The number of the channel's participants exceeds the allowed amount.

900500
(request failed)

socketChannelNotFound
The request failed because there is no channel to perform this operation.