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

**URL:** <https://openvidu.discourse.group/t/unable-to-join-session-session-cannot-be-found-code-202/1530>\
**Category:** Issues developing apps\
**Tags:** v2\
**Created:** [July 19, 2020, 11:04am UTC](https://openvidu.discourse.group/t/unable-to-join-session-session-cannot-be-found-code-202/1530 "2020-07-19T11:04:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raphael](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/raphael/32/766_2.png) [@Raphael](https://openvidu.discourse.group/u/Raphael)\
**Post date:** [July 19, 2020, 11:04am UTC](https://openvidu.discourse.group/t/unable-to-join-session-session-cannot-be-found-code-202/1530/1 "2020-07-19T11:04:33Z")

</div>

Hello,  
I use the openvidu-js-java tutorial + Openvidu deployed on premises, I am creating an Android app, I try to join a session using the OpenVidu Server RPC protocol.

When I create a session from Android, I receive this in the app server logs :

> Getting a token from OpenVidu Server | {sessionName}={“sessionName”:“room123”,“userName”:“mike”}  
> New session room123  
> 2020-07-19 12:45:08.409 INFO 9427 — [nio-5000-exec-4] io.openvidu.java.client.Session : Session ‘ses\_OFHyOwg2Rq’ created

Here is the message that I send to join a session :

```
val obj = JSONObject()
        obj.put("jsonrpc", 2.0)
        obj.put("method", "joinRoom")
        val objParams = JSONObject()
        objParams.put("token", token)
        objParams.put("session", roomName)
        objParams.put("platform", "Android " + android.os.Build.VERSION.SDK_INT)
        objParams.put("metadata", "{\"clientData\": \"$userName\"}")
        objParams.put("secret", "")
        objParams.put("recorder", false)
        obj.put("params", objParams)
        obj.put("id", 1)

```

I receive this error in Openvidu server :

> openvidu-server\_1 | [ERROR] 2020-07-19 10:45:10,750 [SessionHandler-a5l9fg3n1ut5lblvqgruui8djk-e24-t0] io.openvidu.server.rpc.RpcHandler - ERROR: Session room123 not found  
> openvidu-server\_1 | [ERROR] 2020-07-19 10:45:10,750 [SessionHandler-a5l9fg3n1ut5lblvqgruui8djk-e24-t0] org.kurento.jsonrpc.internal.JsonRpcHandlerManager - Exception while processing request {“id”:1,“method”:“joinRoom”,“params”:{“token”:“wss://x.x.x.x:4443?sessionId=ses\_OFHyOwg2Rq&token=tok\_MS7ev5jiNEKtRsvh&role=PUBLISHER&version=2.15.0&coturnIp=x.x.x.x&turnUsername=ORVHVN&turnCredential=zcylyo”,“session”:“room123”,“platform”:“Android 23”,“metadata”:“{"clientData": "mike"}”,“secret”:“”,“recorder”:false},“jsonrpc”:“2.0”}  
> openvidu-server\_1 | io.openvidu.client.OpenViduException: Unable to join session. Session room123 cannot be found. Code: 202

Here is what I receive in Android websocket :

> {id=1.0, error={code=202.0, message=Unable to join session. Session room123 cannot be found. Code: 202}, jsonrpc=2.0}

I don’t understand why actually, can someone help me ?

Do I have to send the secret to join a room ?  
roomName should be equal to “room123” or “ses\_OFHyOwg2Rq” ?

Edit: it looks like roomName should be equal to “ses\_OFHyOwg2Rq”  
I will update this post to say if it works this way.

---

<div class="post-metadata">

**Author:** ![Raphael](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/raphael/32/766_2.png) [@Raphael](https://openvidu.discourse.group/u/Raphael)\
**Post date:** [July 19, 2020, 1:36pm UTC](https://openvidu.discourse.group/t/unable-to-join-session-session-cannot-be-found-code-202/1530/2 "2020-07-19T13:36:23Z")

</div>

fixed  
roomName needed to be equal to “ses\_OFHyOwg2Rq”
