"ERROR:Unable to join session" when reconnect

Hi!

Found strange issue that happens approx 2 out of 10 times.

When i leave session and trying to init new session 1 second after in rare cases this error happens. Only happens when one user was in the room. Seems that it happens when calling OV.initSession() method. Is it possible to catch this error in JS?

This is possibly a timing issue. You are trying to join a session with a token that belongs to a non-existing session in OpenVidu Server.
Of course you can catch the error in your JS code:

session.connect(TOKEN)
    .then( ... )
    .catch( /* HERE YOU WILL CATCH THAT ERROR */ );
1 Like

Thank you, Pablo! Will implement it!