Reference

Client error codes

Every BMXErrorCode returned by the Lanying client SDKs, grouped by area: general, user, push, message, roster, group and server.

Client SDK calls return a BMXErrorCode. NoError means success; anything else should be surfaced or retried according to the group it belongs to.

General

CodeDescription
NoErrorThe operation succeeded.
GeneralErrorA generic error occurred during the operation.
InvalidParamOne of the input parameters is invalid.
NotFoundThe path or file does not exist.
DbOperationFailedThe local database operation failed.

Sign-in and user

CodeDescription
SignInCancelledThe user cancelled the sign-in.
SignInTimeoutThe sign-in timed out.
SignInFailedThe sign-in failed.
UserSigningInA sign-in is already in progress.
UserNotLoginThe user is not signed in.
UserAlreadyLoginAnother user is already signed in.
UserAuthFailedAuthentication failed: wrong name/id or password.
UserPermissionDeniedThe user is not allowed to perform this operation.
UserNotExistThe user does not exist.
UserAlreadyExistThe user already exists.
UserFrozenThe user account is frozen.
UserBannedThe user is banned from sending messages.
UserRemovedThe user has been deleted.
UserTooManyDeviceThe user is signed in on too many devices.
UserPasswordChangedThe password was changed on another device.
UserKickedBySameDeviceKicked out by the same device.
UserKickedByOtherDevicesKicked out by another device.
UserAbnormalAbnormal sign-in state — ask the user to sign in again.
UserCancelThe user cancelled the operation.
UserOldPasswordNotMatchThe old password does not match when changing password.

Push

CodeDescription
PushTokenInvalidThe push token is invalid.
PushAliasBindByOtherUserThe push alias is bound to another user.
PushAliasTokenNotMatchThe push alias and token do not match.

Request and file validation

CodeDescription
InvalidVerificationCodeThe verification code is invalid.
InvalidRequestParameterThe request parameter is invalid.
InvalidUserNameParameterThe username parameter is invalid.
MissingAccessTokenThe access token parameter is missing.
InvalidTokenThe token is invalid.
CurrentUserIsInRosterThe user is already in the contact list.
CurrentUserIsInBlocklistThe user is already in the block list.
AnswerFailedThe application does not exist or has expired.
InvalidFileSignThe file signature is invalid.
InvalidFileObjectTypeThe file object type is invalid.
InvalidFileUploadToTypeThe file upload target type is invalid.
InvalidFileDownloadUrlThe file download URL is invalid.

Messages

CodeDescription
MessageInvalidThe message format is invalid.
MessageOutRecallTimeThe message is past the allowed recall window.
MessageRecallDisabledRecalling this message is disabled.
MessageCensoredThe message contains censored content.
MessageInvalidTypeThis message type does not support the operation.
MessageBadArgThe message contains illegal characters.
MessageRateLimitExceededThe message send rate limit was reached.

Roster

CodeDescription
RosterNotFriendThe contact is not a friend.
RosterBlockListExistThe contact is already in the block list.
RosterRejectApplicationThe user does not accept friend requests.
RosterHasDeletedFromSystemThe contact has been deleted from the system.

Groups

CodeDescription
GroupServerDbErrorA server database error occurred.
GroupNotExistThe group was not found.
GroupNotMemberFoundThe user is not a member of the group.
GroupMsgNotifyTypeUnknownUnknown group message notification type.
GroupOwnerCannotLeaveThe owner cannot leave the group.
GroupTransferNotAllowedOwnership can only be transferred to a member.
GroupRecoveryModeThe group is in recovery mode.
GroupExceedLimitGlobalThe global group limit was reached.
GroupExceedLimitUserCreateToo many members passed when creating the group.
GroupExceedLimitUserJoinThe join limit was reached.
GroupCapacityExceedLimitThe group capacity limit was reached.
GroupMemberPermissionRequiredMember permission is required.
GroupAdminPermissionRequiredAdmin permission is required.
GroupOwnerPermissionRequiredOwner permission is required.
GroupApplicationExpiredOrHandledThe join request expired or is being handled.
GroupInvitationExpiredOrHandledThe invitation expired or is being handled.
GroupKickTooManyTimesThe user has been kicked more than three times.
GroupMemberExistThe user is already in the group.
GroupBlockListExistThe user is already in the group block list.
GroupAnnouncementNotFoundThe announcement was not found.
GroupAnnouncementForbiddenThe announcement was forbidden by an administrator.
GroupSharedFileNotFoundThe shared file was not found.
GroupSharedFileOperateNotAllowedNo permission to operate on the shared file.
GroupMemberBannedThe member is muted in the group.

Server

CodeDescription
ServerNotReachableThe server is unreachable.
ServerUnknownErrorAn unknown server error occurred.
ServerInvalidThe server host is invalid.
ServerDecryptionFailedServer-side decryption failed.
ServerEncryptMethodUnsupportedThe encryption method is unsupported.
ServerBusyThe server is busy.
ServerNeedRetryThe request should be retried.
ServerTimeOutThe server request timed out.
ServerConnectFailedThe connection to the server failed.
ServerDNSFailedFetching the server DNS list failed.
ServerNeedReconnectedThe server changed; reconnect required.
ServerFileUploadUnknownErrorUnknown error while uploading a file.
ServerFileDownloadUnknownErrorUnknown error while downloading a file.
ServerFileDownloadFailureThe download failed.
ServerInvalidLicenseThe server licence is invalid.
ServerLicenseLimitThe server licence limit was reached.
ServerAppFrozenThe application is frozen.
ServerTooManyRequestToo many requests were sent to the server.
ServerNotAllowOpenRegisterOpen registration is disabled.
ServerFireplaceUnknownErrorUnknown error in the fireplace service.
ServerResponseInvalidThe server response is invalid.
ServerInvalidUploadUrlThe upload URL is invalid.
ServerAppLicenseInvalidThe application licence is invalid.
ServerAppLicenseExpiredThe application licence expired.
ServerAppLicenseExceedLimitThe application licence limit was reached.
ServerAppIdMissingThe App ID is missing.
ServerAppIdInvalidThe App ID is invalid.
ServerAppSignInvalidThe application signature is invalid.
ServerAppNotifierNotExistThe application notifier does not exist.
ServerNoClusterInfoForClusterIdNo cluster information for the given cluster id.
ServerAppStatusNotNormalThe application status is abnormal.
ServerPlatformNotAllowedThe sign-in device platform is not allowed.
ServerCannotCreateDeviceSnThe server cannot create a device serial number.
ServerRtcNotOpenThe voice & video service is not enabled.