Error code will be json object:
{
code: 1,
message: "Error msg"
}
Common errors
Code | Message |
---|---|
100 | Please check your internet connection |
101 | Error in connection |
102 | You must be logged in |
103 | Error at parsing json |
104 | Error at initializing settings |
105 | Log in error in heartbeat
|
106 | The file does not exist on the given path. |
107 | Exception is thrown
|
108 | CometChat is not installed at specified url |
109 | Please configure Translate Conversation module on CometChat admin panel |
111 | Sticker plugin is not enabled on your CometChat |
112 | User is not found |
Login error
Code | Message |
---|---|
200 | Incorrect user id (server returns 0) |
201 | Invalid user details (Server returned empty response) |
202 | Invalid url or response for login is incorrect
|
203 | Sorry, CometChat needs to be upgraded on the site to use this sdk.
|
204 | Incorrect username or password |
205 | Cloud subscription is over, please contact administrator |
206 | You have not purchased cloud plan to support SDK, please contact administrator |
One-on-One error
Code | Message |
---|---|
300 | An error occurred while blocking user
|
301 | An error occurred while unblocking user
|
303 | Text broadcast module is not enabled for your CometChat. |
304 | CometService is not enabled for your CometChat |
305 | Typing feature is not enabled.
|
Chatroom error
Code | Message |
---|---|
400 | You have not joined any chatroom |
401 | This chatroom can’t be created, it may exists. |
402 | Please enter correct password for chatroom
|
403 | You are banned from this chatroom |
404 | Please check your chatroom id |
405 | This chatroom does not exist |
AVChat error
Code | Message |
---|---|
500 | Audio/Video Chat plugin not enabled |
501 | User provided for Audio/Video Chat call is incorrect |
502 | No Call Details found
|
503 | Container is empty |
504 | Your device does not support this feature |