Error Codes
Most of the error codes generated by the SDK would have a pre-defined meaning and can be used to directly identify the cause of the error. The returned object would contain an error_code and reason.
init_connection()
code
reason
data
105
WebRTC is not supported on the client device. Our SDK won't work on this device
N/A
106
Unable to initialise pre-flight checks, our SDK won't work on this device. Please contact support with the data object provided with the error.
Obj
104
Another connection is being established with the same credentials
103
USED_ID format error : requirement : no space, not null, only string type
102
SESSION_ID format error : requirement : no space, not null, only string type
101
API_KEY format error : requirement : no space, not null, only string type
111
Unknown Error, the reason field in error obj would contain more info
107
Authorisation Error, the reason field in error obj would contain more info
publish()
code
reason
data
2001
SDK is not connected with the server, Please use init_connection to create a session before trying to publish a Media Stream
N/A
2014
This Media Stream (webcam, screen share) is already published
2013
SDK is busy publishing the same Media Stream, please try after the previous promise is fulfilled
2015
The video Element ID provided in the publish call does not exist. We need a video element to connect the Media Stream we are sending out to the server
2016
Error occurred while publishing our local stream, the associated reason would give more details. Please contact support with sid and uid of this participant.
subscribe()
code
reason
data
2001
SDK is not connected with the server, Please use init_connection to create a session before trying to publish a Media Stream
N/A
2004
This Media Stream (webcam, screen share) is already subscribed
2003
SDK is busy subscribing to this Media Stream, please try after the previous promise is fulfilled
2005
The video Element ID provided in the subscribe call does not exist. We need a video element to connect the Media Stream we are subscribing.
2002
This user_id and type does not corresponds to any publisher in the session
2006
Error occurred while subscribing to remote publisher, the associated reason would give more details. Please contact support with sid and uid of this participant.
Last updated
Was this helpful?