本文档列举出服务端和 SDK 返回的错误码及相应说明。其他由各 SDK 产生的错误码,请参考以下链接:
28
7
(无)
Internal server error. No information available.
International SMS is disabled, please enable it in console.
The connection to the AVOS servers failed.
Object doesn't exist, or has an incorrect password.
Missing or invalid classname. Classnames are case-sensitive. They must start with a letter, and a-zA-Z0-9_ are the only valid characters.
Missing object id.
Invalid key name. Keys are case-sensitive. They must start with a letter, and a-zA-Z0-9_ are the only valid characters.
Malformed pointer. Pointers must be arrays of a classname and an object id.
{className: 'Post', objectId:'xxxxxx'}
Malformed json object. A json dictionary is expected.
Tried to access a feature only available internally.
That operation isn't allowed by binding class.
Field set to incorrect type.
Invalid channel name. A channel name is either an empty string (the broadcast channel) or contains only a-zA-Z0-9_=, '-' or chinese characters.
_
-
=
Key is required.
Invalid device token.
The object is too large.
The key is read only.
That operation isn't allowed for clients.
The results were not found in the cache.
Keys in NSDictionary values may not include '$' or '.'.
$
.
Invalid file name. A file name contains only a-zA-Z0-9_. characters and is between 1 and 36 characters.
Invalid ACL. An ACL with an invalid format was saved. This should not happen if you use AVACL.
The request timed out on the server. Typically this indicates the request is too expensive.
The email address was invalid.
Invalid user id.
The mobile phone number was invalid.
Invalid relation data.
A unique field was given a value that is already taken.
Role's name is invalid.
超过应用额度,请升级到商用版或联系我们处理。
LeanEngine request timeout.
Cloud Code validation failed.
beforeSave
beforeDelete
Error detail
Application not found
Payment is disabled on this device.
Fail to convert data to image.
Exceeded an application threshold setting.
Insufficient balance.
Username is missing or empty
Password is missing or empty.
Username has already been taken.
Email has already been taken.
The email is missing, and must be specified.
A user with the specified email was not found.
The user cannot be altered by a client without the session.
Users can only be created through sign up.
An existing account already linked to another user.
The username and password mismatch.
Could not find user.
The mobile phone number is missing, and must be specified.
A user with the specified mobile phone number was not found.
Mobile phone number has already been taken.
Mobile phone number isn't verified.
Email address isn't verified.
Invalid username, it must be a non-blank string.
Invalid password, it must be a non-blank string.
登录失败次数超过限制,请稍候再试,或者通过忘记密码重设密码。
Friendship not found.
Linked id missing from request
Invalid linked session
Invalid Weibo session
Invalid Weixin session
CQL syntax error.
Fails to insert new document.
Invalid GeoPoint values.
Fail to execute operation on storage.
Database error.
No effect on updating/deleting a document.
Unauthorized.
当应用在控制台中的相关服务选项未打开,如 Class 关闭了权限,或是 User 缺失了 session 信息等情况下,云端会统一地返回 403 错误码及不同的错误信息,代表当前请求因权限不够而被拒。例如:
Forbidden to read/write by class permissions
Payload Too Large.
Too many requests.
Upload files rate limit exceeded.
upload
LeanEngine hooks rate limit exceeded.
Server is in maintenance.
The app is temporarily disabled/readonly.
The app is archived, please restore in console before use.
Temporarily Unavailable.
complete a TCP connection to the upstream server, but did not receive a timely HTTP response.
Exceeded Limit
Invalid SMS signature.
Can't send SMS too frequently.
Fails to send message.
Invalid SMS code.
SMS template not found.
SMS template not verified.
SMS sign not verified
Fails to render SMS template.
Missing validate token.
Nonexistent query keys
statisticName not found.
Leaderboard closed.
Leaderboard archive not found.
Invalid Leaderboard object.
APP_NOT_AVAILABLE
DUPLICATED_LOGIN
SIGNATURE_FAILED
INVALID_LOGIN
SESSION_REQUIRED
BLACKLISTED
READ_TIMEOUT
LOGIN_TIMEOUT
FRAME_TOO_LONG
INVALID_ORIGIN
SESSION_CONFLICT
SESSION_TOKEN_EXPIRED
APP_QUOTA_EXCEEDED
UNPARSEABLE_RAW_MESSAGE
KICKED_BY_APP
MESSAGE_SENT_QUOTA_EXCEEDED
UNBIND_INSTALLATION_FAILED
INTERNAL_ERROR
SEND_MESSAGE_TIMEOUT
CONVERSATION_INTERNAL_ERROR
CONVERSATION_API_FAILED
CONVERSATION_SIGNATURE_FAILED
CONVERSATION_NOT_FOUND
CONVERSATION_FULL
CONVERSATION_REJECTED_BY_APP
CONVERSATION_UPDATE_FAILED
CONVERSATION_READ_ONLY
CONVERSATION_NOT_ALLOWED
CONVERSATION_UPDATE_REJECTED
CONVERSATION_QUERY_FAILED
CONVERSATION_LOG_FAILED
CONVERSATION_LOG_REJECTED
SYSTEM_CONVERSATION_REQUIRED
NORMAL_CONVERSATION_REQUIRED
CONVERSATION_TEMPORARY_BLACKLISTED
TRANSIENT_CONVERSATION_REQUIRED
CONVERSATION_MEMBERSHIP_REQUIRED
CONVERSATION_API_QUOTA_EXCEEDED
CONVERSATION_OPERATION_UNAUTHORIZED
UNKNOWN_CONVERSATION_ROLE
CONVERSATION_MEMBER_IN_ROLE_FULL
TEMPORARY_CONVERSATION_EXPIRED
CONVERSATION_NEED_OWNER
CONVERSATION_MEMBER_INFO_FEATURE_DISABLED
INVALID_MESSAGING_TARGET
MESSAGE_REJECTED_BY_APP
MESSAGE_OWNERSHIP_REQUIRED
MESSAGE_NOT_FOUND
MESSAGE_UPDATE_REJECTED_BY_APP
MESSAGE_EDIT_DISABLED
MESSAGE_RECALL_DISABLED
MESSAGE_MODIFIED_BY_CENSORSHIP
BLACKLIST_FULL
BLACKLIST_FEATURE_DISABLED
BLACKLIST_SIGNATURE_FAILED
BLOCKED_BY_CONV
SILIENCED_MEMBER_LIST_FULL
SILIENCED
错误码详解
本文档列举出服务端和 SDK 返回的错误码及相应说明。其他由各 SDK 产生的错误码,请参考以下链接:
28
表示请求超时、7
表示连接服务器失败,请参考 libcurl error codes。0
(无)
1
Internal server error. No information available.
International SMS is disabled, please enable it in console.
就表示在控制台没有开启国际短信开关的情况下试图发送国际短信。100
The connection to the AVOS servers failed.
101
Object doesn't exist, or has an incorrect password.
103
Missing or invalid classname. Classnames are case-sensitive. They must start with a letter, and a-zA-Z0-9_ are the only valid characters.
104
Missing object id.
105
Invalid key name. Keys are case-sensitive. They must start with a letter, and a-zA-Z0-9_ are the only valid characters.
106
Malformed pointer. Pointers must be arrays of a classname and an object id.
{className: 'Post', objectId:'xxxxxx'}
的 JSON 对象。107
Malformed json object. A json dictionary is expected.
108
Tried to access a feature only available internally.
109
That operation isn't allowed by binding class.
111
Field set to incorrect type.
112
Invalid channel name. A channel name is either an empty string (the broadcast channel) or contains only a-zA-Z0-9_=, '-' or chinese characters.
_
)、连字符(-
)、等号(=
)、汉字(中日韩统一表意文字)。频道名称为空字符串表示广播。113
Key is required.
114
Invalid device token.
116
The object is too large.
117
The key is read only.
119
That operation isn't allowed for clients.
120
The results were not found in the cache.
121
Keys in NSDictionary values may not include '$' or '.'.
$
和.
符号。122
Invalid file name. A file name contains only a-zA-Z0-9_. characters and is between 1 and 36 characters.
123
Invalid ACL. An ACL with an invalid format was saved. This should not happen if you use AVACL.
124
The request timed out on the server. Typically this indicates the request is too expensive.
125
The email address was invalid.
126
Invalid user id.
127
The mobile phone number was invalid.
128
Invalid relation data.
137
A unique field was given a value that is already taken.
139
Role's name is invalid.
140
超过应用额度,请升级到商用版或联系我们处理。
141
LeanEngine request timeout.
142
Cloud Code validation failed.
beforeSave
、beforeDelete
等 hook 函数返回 error。错误信息中的Error detail
会包括具体的原因,比如Application not found
通常是因为云引擎实例休眠而导致 hook 调用失败。145
Payment is disabled on this device.
150
Fail to convert data to image.
154
Exceeded an application threshold setting.
160
Insufficient balance.
200
Username is missing or empty
201
Password is missing or empty.
202
Username has already been taken.
203
Email has already been taken.
204
The email is missing, and must be specified.
205
A user with the specified email was not found.
206
The user cannot be altered by a client without the session.
207
Users can only be created through sign up.
208
An existing account already linked to another user.
210
The username and password mismatch.
211
Could not find user.
212
The mobile phone number is missing, and must be specified.
213
A user with the specified mobile phone number was not found.
214
Mobile phone number has already been taken.
215
Mobile phone number isn't verified.
216
Email address isn't verified.
217
Invalid username, it must be a non-blank string.
218
Invalid password, it must be a non-blank string.
219
登录失败次数超过限制,请稍候再试,或者通过忘记密码重设密码。
221
Friendship not found.
250
Linked id missing from request
251
Invalid linked session
或者Invalid Weibo session
252
Invalid Weixin session
300
CQL syntax error.
301
Fails to insert new document.
302
Invalid GeoPoint values.
303
Fail to execute operation on storage.
304
Database error.
305
No effect on updating/deleting a document.
401
Unauthorized.
403
当应用在控制台中的相关服务选项未打开,如 Class 关闭了权限,或是 User 缺失了 session 信息等情况下,云端会统一地返回 403 错误码及不同的错误信息,代表当前请求因权限不够而被拒。例如:
Forbidden to read/write by class permissions
The user cannot be altered by a client without the session.
413
Payload Too Large.
429
Too many requests.
430
Upload files rate limit exceeded.
upload
命令。431
LeanEngine hooks rate limit exceeded.
502
Server is in maintenance.
503
The app is temporarily disabled/readonly.
504
The app is archived, please restore in console before use.
511
Temporarily Unavailable.
524
complete a TCP connection to the upstream server, but did not receive a timely HTTP response.
529
Exceeded Limit
600
Invalid SMS signature.
601
Can't send SMS too frequently.
602
Fails to send message.
603
Invalid SMS code.
604
SMS template not found.
605
SMS template not verified.
SMS sign not verified
606
Fails to render SMS template.
608
Missing validate token.
700
Nonexistent query keys
2100
statisticName not found.
2101
Leaderboard closed.
2102
Leaderboard archive not found.
2103
Invalid Leaderboard object.
1006
(无)
4100
APP_NOT_AVAILABLE
4101
DUPLICATED_LOGIN
4102
SIGNATURE_FAILED
4103
INVALID_LOGIN
4105
SESSION_REQUIRED
4106
BLACKLISTED
4107
READ_TIMEOUT
4108
LOGIN_TIMEOUT
4109
FRAME_TOO_LONG
4110
INVALID_ORIGIN
4111
SESSION_CONFLICT
4112
SESSION_TOKEN_EXPIRED
4113
APP_QUOTA_EXCEEDED
4114
UNPARSEABLE_RAW_MESSAGE
4115
KICKED_BY_APP
4116
MESSAGE_SENT_QUOTA_EXCEEDED
4117
UNBIND_INSTALLATION_FAILED
4200
INTERNAL_ERROR
4201
SEND_MESSAGE_TIMEOUT
4300
CONVERSATION_INTERNAL_ERROR
4301
CONVERSATION_API_FAILED
4302
CONVERSATION_SIGNATURE_FAILED
4303
CONVERSATION_NOT_FOUND
4304
CONVERSATION_FULL
4305
CONVERSATION_REJECTED_BY_APP
4306
CONVERSATION_UPDATE_FAILED
4307
CONVERSATION_READ_ONLY
4308
CONVERSATION_NOT_ALLOWED
4309
CONVERSATION_UPDATE_REJECTED
4310
CONVERSATION_QUERY_FAILED
4311
CONVERSATION_LOG_FAILED
4312
CONVERSATION_LOG_REJECTED
4313
SYSTEM_CONVERSATION_REQUIRED
4314
NORMAL_CONVERSATION_REQUIRED
4315
CONVERSATION_TEMPORARY_BLACKLISTED
4316
TRANSIENT_CONVERSATION_REQUIRED
4317
CONVERSATION_MEMBERSHIP_REQUIRED
4318
CONVERSATION_API_QUOTA_EXCEEDED
4320
CONVERSATION_OPERATION_UNAUTHORIZED
4321
UNKNOWN_CONVERSATION_ROLE
4322
CONVERSATION_MEMBER_IN_ROLE_FULL
4323
TEMPORARY_CONVERSATION_EXPIRED
4324
CONVERSATION_NEED_OWNER
4325
CONVERSATION_MEMBER_INFO_FEATURE_DISABLED
4401
INVALID_MESSAGING_TARGET
4402
MESSAGE_REJECTED_BY_APP
4403
MESSAGE_OWNERSHIP_REQUIRED
4404
MESSAGE_NOT_FOUND
4405
MESSAGE_UPDATE_REJECTED_BY_APP
4406
MESSAGE_EDIT_DISABLED
4407
MESSAGE_RECALL_DISABLED
4408
MESSAGE_MODIFIED_BY_CENSORSHIP
4543
BLACKLIST_FULL
4544
BLACKLIST_FEATURE_DISABLED
4546
BLACKLIST_SIGNATURE_FAILED
4548
BLOCKED_BY_CONV
4561
SILIENCED_MEMBER_LIST_FULL
4563
SILIENCED