Skip to main content
Error categories: Initialization, Login, Calling, Messages, Groups, Users, Conversations, Receipts, AI, Extensions
Every error returned by the CometChat Android SDK is a CometChatException object. Access its properties via getters in Java or properties in Kotlin:

Initialization Errors

Login & Authentication Errors

Calling Errors

Message Errors

User Errors

Group Errors

Conversation Errors

Receipt Errors

AI Feature Errors

Extension Errors

Feature Restriction Errors

Network & API Errors

Validation Errors

These errors use dynamic codes based on the parameter name (e.g., INVALID_UID, UID_IS_COMPULSORY):

Prosody (WebSocket Server) Errors

General Errors

Server-Side API Errors

For REST API error codes (returned by the CometChat backend), see the Error Guide. Common server-side errors you may encounter in SDK responses: See the full list in the Error Guide.

Next Steps

Troubleshooting

Common issues and solutions

Rate Limits

Understand and handle rate limits

Error Guide (REST API)

Complete server-side error code reference

Best Practices

Recommended patterns for error handling