Error code will be json object of { error_code:error_message }
Common errors
Code | Message |
---|---|
100 | Please check your Internet connection |
101 | Connection error |
102 | User has not logged-in |
103 | JSON Parsing error |
104 | Initial settings error |
105 | User has already logged-out
|
106 | The file does not exist at given path |
107 | CometChat is not installed at specified url |
108 | Please configure Translate Conversation module on CometChat admin panel |
Login error
Code | Message |
---|---|
200 | Incorrect userID (server returns 0 for login with userID) |
201 | Invalid User (Server has 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 and password (server returns 0 for login with username and password) |
205 | Unable to connect to domain. Please contact us at [email protected] for more information.
|
One-on-One Error
Code | Message |
---|---|
300 | An error occurred while blocking user
|
301 | An error occurred while unblocking user
|
Chatroom error
Code | Message |
---|---|
400 | User has not joined any chatroom |
401 | Cannot create chatoom. Chatroom with the same name exists. |
402 | Please enter correct password for chatroom
|
403 | You are banned from this chatroom |
404 | User has been banned from given chatroom |
405 | This chatroom does not exist |
406 | You do not have the privileges(owner,moderator & admin) to delete this chatroom. OR This chatroom doesn’t exists. |
AVChat error
Code | Message |
---|---|
500 | Audio/Video Chat plugin not enabled.(You have to enable the Audio Video Chat plugin from your CometChat admin panel.) |
501 | No Call Details found.
|
502 | User provided for Audio/Video Chat call is incorrect |
503 | Local media unavailable |
504 | Audio/Video Chat call could not connect |
505 | This device does not support Audio/Video Chat feature |
506 | User is already busy in a call |
507 | Container view provided for Audio/Video Chat is nil |
Not finding what you need?
The CometChat team is here to help!