Unable to join session. Session ses_XXX cannot be found. Code: 202

Hello!
We are trying out OpenVidu EE but it seems around 50% of the times we fail to joinRoom and we get back a 202 error code.
That doesn’t happen with OpenVidu CE.

At first we thought it’s some race condition where we try to joinRoom for a session that is not yet created, but we noticed that:

  • Rest APIs confirm the session is created
  • Retrying to join the room continues to fail forever (so it is not a race condition)

Example RPC request:

    {
      "id": 1,
      "jsonrpc": "2.0",
      "method": "joinRoom",
      "params": {
        "metadata": "{ \"clientData\": \"353919813\" }",
        "platform": "Android 30",
        "secret": "",
        "session": "ses_J9rqjRumxi",
        "token": "wss:\/\/myserver.com?sessionId=ses_J9rqjRumxi&token=tok_QHsOHt9gNkdZ5NyD&webrtcStatsInterval=30&sendBrowserLogs=disabled",
        "userId": "353919813"
      }
    }

And response:

    {
      "id": 1,
      "error": {
        "code": 202,
        "message": "Unable to join session. Session ses_J9rqjRumxi cannot be found. Code: 202"
      },
      "jsonrpc": "2.0"
    }

Any clue why this happens?

Thank you,
Alessandro

What OpenVidu EE deployment do you have? Single master or High availability?

Hello @cruizba, the OpenVidu EE deployment we have is High Availability (2 masters)

Hello @Ale , something is not correctly configured if 50% of the requests are failing. Could we troubleshoot your deployment?

I think @pabloFuente is contacting with you also via email, we can still continue over email.

Thanks @cruizba, changing deployment seems to have fixed :partying_face: We’ll continue over email! :wave:

1 Like