Join issue from 2.22 to 2.31

We have been using OpenVidu version 2.19 since its release, but recently we decided to upgrade to version 2.31 due to numerous bug fixes. After extensive testing, we realized that with version 2.22, we could no longer effectively use the application. We also tested the OpenVidu default application and encountered the same issues present in our custom application.

We are using OpenVidu CE on premises. I noticed that starting from version 2.22, Redis is no longer utilized, and I suspect this may be related to the issues we are experiencing.
It seems the issue starts when users leave and then try to rejoin after a while, especially when we have about 20 or more participants in the meeting. Below, I have provided some relevant logs for your review:

ERROR: Request has timed out in Request: method:joinRoom params:{“token”:"
main.99fc299a67826d3c.js:1
wss://openvidu.shooka.com?sessionId=123456&token=tok_QCNkxytIA13HLr4F",“session”:“123456”, “platform”: “Chrome 132.0.0.0 on Windows 10 64-bit”, “sdkVersion”: “2.31.0”, “metadata”:"
{"clientData":"jalali1","participant Id":"0_mov6htg7nb8","type":"CAMERA"}“, “secret”:”“, “recorder”:fa lse, “stt”:false} request: {“jsonrpc”:“2.0”, “method”: “joinRoom”, “params”:{“token”:” wss://openvidu.shooka.com?sessionId=123456&token=tok QCNkxytIA13HLr4F",“session”:“123456”, “platform”: “Chrome 132.0.0.0 on Windows 10 64-bit”, “sdkVersion”: “2.31.0”, “metadata”:"
{"clientData":"jalali1","participant Id":"0_mov6htg7nb8","type":"CAMERA"}“, “secret”:”",“recorder”:fa lse, “stt”:false}, “id”:1}
► [SessionComponent] ERROR: There was an error connecting to the session: undefined main.99fc299a67826d3c.js:1 Request has timed out
▸ ERROR TypeError: Cannot read properties of undefined (reading ‘pc’) at 0.getRTCPeerConnection (main.99fc299a67826d3c.js:1:1686763)
at main.99fc299a67826d3c.js:1:1194393
at
Generator.next ()
at H (main.99fc299a67826d3c.js:1:151)
at a (main.99fc299a67826d3c.js:1:353)
at main.99fc299a67826d3c.js:1:412
at new Z (polyfills.3e4297f5e84b577a.js:1:26827)
at main.99fc299a67826d3c.js:1:294
at t.updateVideoEncodingParameters (main.99fc299a67826d3c.js:1:1194782) at main.99fc299a67826d3c.js:1:1297633
► GET https://openvidu.shooka.com/assets/images/logo.png 404 (Not Found)
main.99fc299a67826d3c.js:1
logo.png:1```

openvidu-server-1  | [ERROR] 2025-02-04 12:34:56,008 [jsonrpcTaskScheduler-1] io.openvidu.server.rpc.RpcNotificationService - No RPC session found for private ID dso0d126mn2f23mjhcfm5hc113, unable to send notification participantEvicted: {"connectionId":"con_SogMBGyKZf","reason":"networkDisconnect"}
openvidu-server-1  | [WARN] 2025-02-04 12:34:56,009 [jsonrpcTaskScheduler-1] io.openvidu.server.rpc.RpcNotificationService - Notification 'participantEvicted' couldn't be sent to participant with privateId 7li161udnu3evbrvti1022fidu: The WebSocket session [50] has been closed and no method (apart from close()) may be called on a closed session
openvidu-server-1  | [WARN] 2025-02-04 12:34:56,009 [jsonrpcTaskScheduler-1] io.openvidu.server.rpc.RpcNotificationService - Removing ghost participant with participant private ID 7li161udnu3evbrvti1022fidu
openvidu-server-1  | [WARN] 2025-02-04 12:34:56,009 [jsonrpcTaskScheduler-1] io.openvidu.server.rpc.RpcHandler - Unable to evict: No participant with private ID '7li161udnu3evbrvti1022fidu' was found. Code: 102
openvidu-server-1  | [INFO] 2025-02-04 12:34:56,009 [jsonrpcTaskScheduler-1] io.openvidu.server.rpc.RpcHandler - Evicted participant with privateId dso0d126mn2f23mjhcfm5hc113
openvidu-server-1  | [INFO] 2025-02-04 12:34:58,113 [jsonrpcTaskScheduler-1] io.openvidu.server.rpc.RpcHandler - After connection closed for WebSocket session: 7li161udnu3evbrvti1022fidu - Status: null
openvidu-server-1  | [INFO] 2025-02-04 12:35:06,005 [pool-1-thread-7] io.openvidu.server.rpc.RpcNotificationService - Closed RPC session for participant with private ID 7li161udnu3evbrvti1022fidu
openvidu-server-1  | [INFO] 2025-02-04 12:35:06,005 [pool-1-thread-7] io.openvidu.server.rpc.RpcNotificationService - <PRIVATE_ID, RPC_CONNECTION>: 

Hi,

I have tried to replicate your issues, and I was not able to see the issue. I see in our previous conversation you mention it fails when you call openvidu.fetch()

My question is: Is the call to openvidu.fetch() breaking the server? Or it fails before calling that method?

It fails before calling that method. and it continues until 10 or more participant leave the session .then every thing is ok and participants can join to session again