Skip to main content
Version: 0.1.x

Error Events - Android

VideoSDK provides onError event which will notify you of any error happening during the meeting.

onError

  • This event will be triggered whenever any invalid configuration provided or server/network errors arise, this event will trigger with a specific error code and message.
  • This event is helpful for development level troubleshooting while integrating SDK.
  • You can implement this method of the abstract Class MeetingEventListener and add the listener to Meeting class using the addEventListener() method of Meeting Class.

Example

Here is the usage of the event mentioned in this page.

private val meetingEventListener: MeetingEventListener = object : MeetingEventListener() {
//..
override fun onError(error: JSONObject) {
try {
val errorCodes: JSONObject = VideoSDK.getErrorCodes()
val code = error.getInt("code")
Log.d("#error", "Error is: " + error["message"])
} catch (e: Exception) {
e.printStackTrace()
}
}
}

Error Codes

We have depicted a specific constant with code and message in the below table.

CodeTypeMessage
4001INVALID_API_KEY'apikey' provided in the token is empty or invalid, please verify it on the dashboard.
4002INVALID_TOKEN'token' is empty or invalid or might have expired.
4003INVALID_MEETING_ID'meetingId' is empty or invalid, please verify it or generate new meetingId using the API.
4004INVALID_PARTICIPANT_ID'participantId' is empty or invalid, it shouldn't contain any whitespaces.
4005DUPLICATE_PARTICIPANTLeaving meeting, since this 'participantId' joined from another device.
4006ACCOUNT_DEACTIVATEDIt seems your account is deactivated by VideoSDK for some reason, you can reach out to us at support@videosdk.live.
4007ACCOUNT_DISCONTINUEDServer will respond you with specific message.
4008INVALID_PERMISSIONS'permissions' provided in the token are invalid, please don't use 'allow_join' or 'allow_mod' with 'ask_join'.
4009MAX_PARTICIPANT_REACHEDYou have reached max participant limit in a meeting. To increase contact at support@videosdk.live'
4010MAX_SPEAKER_REACHEDYou have reached max speaker limit in a meeting. To increase contact at support@videosdk.live'
4011START_RECORDING_FAILEDRecording start request failed due to an unknown error.
4012STOP_RECORDING_FAILEDRecording stop request failed due to an unknown error.
4013START_LIVESTREAM_FAILEDLivestream start request failed due to an unknown error.
4014STOP_LIVESTREAM_FAILEDLivestream stop request failed due to an unknown error.
4015INVALID_LIVESTREAM_CONFIGLivestream 'outputs' configuration provided was invalid.
4016START_HLS_FAILEDHLS start request failed due to an unknown error.
4017STOP_HLS_FAILEDHLS stop request failed due to an unknown error.
4018PREV_RECORDING_PROCESSINGPrevious recording session is being processed, please try again after few seconds.
4019PREV_RTMP_RECORDING_PROCESSINGPrevious RTMP recording session is being processed, please try again after few seconds!
4020PREV_HLS_STREAMING_PROCESSINGPrevious HLS streaming session is being processed, please try again after few seconds!
4021ADD_ON_SERVICES_DISABLEDAdd-On services are disabled for your account! Please contact us at support@videosdk.live.!
4022UNAUTHORIZED_MEETING_ID'token' is not valid for the provided meetingId
4023UNAUTHORIZED_PARTCIPANT_ID'token' is not valid for the provided participantId
4024UNAUTHORIZED_ROLERole provided in 'token' is not valid for joining the meeting
4025UNAUTHORIZED_REQUESTYour request does not match the security configuration
4026MAX_SPEAKER_LIMIT_REACHED_ON_ORGANIZATIONYou have reached max speaker limit on organization. To increase contact at support@videosdk.live
4027MAX_VIEWER_LIMIT_REACHED_ON_ORGANIZATIONYou have reached max viewer limit on organization. To increase contact at support@videosdk.live
4028MAX_RECORDING_LIMIT_REACHED_ON_ORGANIZATIONYou have reached max limit of recording on organization. To increase contact at support@videosdk.live
4029MAX_HLS_LIMIT_REACHED_ON_ORGANIZATIONYou have reached max limit of hls on organization. To increase contact at support@videosdk.live
4030MAX_LIVESTREAM_LIMIT_REACHED_ON_ORGANIZATIONYou have reached max limit of livestream on organization. To increase contact at support@videosdk.live.
4031START_TRANSCRIPTION_FAILEDTranscription start request failed due to an unknown error.
4032STOP_TRANSCRIPTION_FAILEDTranscription stop request failed due to an unknown error.
4035START_PARTICIPANT_RECORDING_FAILEDParticipant recording start request failed due to an unknown error.
4036STOP_PARTICIPANT_RECORDING_FAILEDParticipant recording stop request failed due to an unknown error.
4037START_TRACK_RECORDING_FAILEDTrack recording start request failed due to an unknown error.
4038STOP_TRACK_RECORDING_FAILEDTrack recording stop request failed due to an unknown error.
5001RECORDING_FAILEDRecording stopped due to an unknown error.
5002LIVESTREAM_FAILEDLivestream stopped due to an unknown error.
5003HLS_FAILEDHLS stopped due to an unknown error.
5004RECORDING_DURATION_LIMIT_REACHEDRecording has been automatically stopped by the system, due to max duration limit of 4 hours reached for a single Recording.
5005LIVESTREAM_DURATION_LIMIT_REACHEDLivestream has been automatically stopped by the system, due to max duration limit of 4 hours reached for a single RTMP.
5006HLS_DURATION_LIMIT_REACHEDHls has been automatically stopped by the system, due to max duration limit of 4 hours reached for a single HLS.
5007TRANSCRIPTION_FAILEDTranscription stopped due to an unknown error.
5012PARTICIPANT_RECORDING_FAILEDParticipant recording stopped due to an unknown error.
5013TRACK_RECORDING_FAILEDTrack recording stopped due to an unknown error.
3001ERROR_ACTION_PERFORMED_BEFORE_MEETING_JOINEDThe meeting is not connected yet. All actions on meeting should be performed after meeting is joined successfully.
3002ERROR_CAMERA_ACCESSSomething went wrong. Unable to access camera.
3003ERROR_MIC_ACCESS_DENIEDIt seems like microphone access was denied or dismissed. To proceed, kindly grant access through your device's settings.
3004ERROR_CAMERA_ACCESS_DENIEDIt seems like camera access was denied or dismissed. To proceed, kindly grant access through your device's settings.
3005ERROR_CUSTOM_SCREEN_SHARE_TRACK_ENDEDThe provided custom track is in an ended state. Please try again with new custom track.
3006ERROR_CUSTOM_SCREEN_SHARE_TRACK_DISPOSEDThe provided custom track was disposed. Please try again with new custom track.
3007ERROR_CHANGE_WEBCAMSomething went wrong, and the camera could not be changed. Please try again.

API Reference

The API references for all the methods and events utilised in this guide are provided below.

Got a Question? Ask us on discord