Error in react-native when connect to a session

Hey, I have a react-native app,
I get this message:
console.error : "Websocket already in CONNECTED state when receivong a new ONRECONNECTED. ignoring it.

What may cause the problem?

Hello @Timor_Sulimani,

As the message says, openvidu-browser has received a ONRECONNECTED message when the websocket is connected. Just ignore it.

It’s possible that this log should be replace by a warning log. Which version of openvidu-react-native-adapter are you using?

Hi @CSantosM,
I also have the same error. How can we replace to warning log?

AFAIK this was be replaced. What version are you using?

openvidu-browser version: 2.18.0
“react-native”: “0.64.1”,

Initially it connect to the server and publish the video. But after few minutes these errors shows and published video disappears.

Which is your openvidu-react-native-adapter version?

openvidu-react-native-adapter-2.18.0

session?.on(‘exception’, (event) => {
logger.log(‘exception’, event);
});

return,

exception {“cancelable”: false, “data”: undefined, “hasBeenPrevented”: false, “message”: “IceConnectionState of RTCPeerConnection 6950ee78-bc4b-497f-b19d-2fc879756df4 (str_CAM_Irpq_con_L8yhU7mr5C) change to “disconnected”. Possible network disconnection”, “name”: “ICE_CONNECTION_DISCONNECTED”, “origin”: {“audioActive”: false, “connection”: {“connectionId”: “con_L8yhU7mr5C”, “creationTime”: 1636778818181, “data”: “{“clientData”:“Josef Wolff”}%/%{“serverData”: " CCDS0000000499 “}”, “disposed”: false, “remoteOptions”: [Object], “session”: [SessionRN], “stream”: [Circular]}, “creationTime”: 1636778819737, “ee”: {”_events": [Object]}, “frameRate”: 30, “harkSpeakingEnabled”: false, “harkSpeakingEnabledOnce”: false, “harkStoppedSpeakingEnabled”: false, “harkStoppedSpeakingEnabledOnce”: false, “harkVolumeChangeEnabled”: false, “harkVolumeChangeEnabledOnce”: false, “hasAudio”: true, “hasVideo”: true, “inboundStreamOpts”: {“audioActive”: false, “connection”: [Connection], “createdAt”: 1636778819737, “filter”: [Object], “frameRate”: 30, “hasAudio”: true, “hasVideo”: true, “id”: “str_CAM_Irpq_con_L8yhU7mr5C”, “typeOfVideo”: “CAMERA”, “videoActive”: true, “videoDimensions”: [Object]}, “isLocalStreamPublished”: false, “isLocalStreamReadyToPublish”: false, “isSubscribeToRemote”: false, “mediaStream”: {"_reactTag": “73e7f0ed-b1eb-43f4-8732-1006f2540792”, “_tracks”: [Array], “active”: true, “id”: “default”}, “publishedOnce”: false, “session”: {“capabilities”: [Object], “connection”: [Connection], “ee”: [EventEmitter], “openvidu”: [OpenViduRN], “options”: [Object], “remoteConnections”: [Map], “remoteStreamsCreated”: [Map], “sessionId”: “b7f3313a-3a0b-4964-aec5-0385c1a70e85”, “streamManagers”: [Array], “userHandlerArrowHandler”: WeakMap {}}, “streamId”: “str_CAM_Irpq_con_L8yhU7mr5C”, “streamManager”: {“canPlayListener”: [Function anonymous], “ee”: [EventEmitter], “element”: undefined, “lazyLaunchVideoElementCreatedEvent”: false, “properties”: [Object], “remote”: true, “stream”: [Circular], “userHandlerArrowHandler”: WeakMap {}, “videos”: [Array]}, “typeOfVideo”: “CAMERA”, “videoActive”: true, “videoDimensions”: {“height”: 480, “width”: 640}, “webRtcPeer”: {“configuration”: [Object], “iceCandidateList”: [Array], “id”: “6950ee78-bc4b-497f-b19d-2fc879756df4”, “localCandidatesQueue”: [Array], “pc”: [RTCPeerConnection], “remoteCandidatesQueue”: [Array]}, “webRtcStats”: {“STATS_ITEM_NAME”: “webrtc-stats-config”, “statsInterval”: 1, “stream”: [Circular], “webRtcStatsEnabled”: false}}, “target”: {“capabilities”: {“forceDisconnect”: true, “forceUnpublish”: true, “publish”: true, “subscribe”: true}, “connection”: {“connectionId”: “con_YupHPgcDBb”, “creationTime”: 1636779263486, “data”: “{“clientData”:“Vasiliki Krajcik”}%/%{“serverData”: " CCDS0000000273 “}”, “disposed”: false, “localOptions”: [Object], “record”: true, “role”: “MODERATOR”, “rpcSessionId”: “tm3npfc8nni165782jp4dmlv13”, “session”: [Circular], “stream”: [StreamRN]}, “ee”: {”_events": [Object]}, “openvidu”: {“advancedConfiguration”: [Object], “ee”: [EventEmitter], “finalUserId”: “B469DEA7931B1E96”, “httpUri”: “https://server.*******-openvidu-dev.com”, “iceServers”: [Array], “jsonRpcClient”: [JsonRpcClient], “libraryVersion”: “2.18.0”, “masterNodeHasCrashed”: false, “mediaServer”: “kurento”, “publishers”: [Array], “recorder”: false, “role”: “MODERATOR”, “secret”: “”, “sendBrowserLogs”: “disabled”, “session”: [Circular], “webrtcStatsInterval”: -1, “wsUri”: “wss://server.odyssey-openvidu-dev.com/openvidu”}, “options”: {“metadata”: “{“clientData”:“Vasiliki Krajcik”}”, “participantId”: “wss://server.odyssey-openvidu-dev.com?sessionId=b7f3313a-3a0b-4964-aec5-0385c1a70e85&token=tok_HzW41AZwXC4ZXR2J”, “sessionId”: “b7f3313a-3a0b-4964-aec5-0385c1a70e85”}, “remoteConnections”: Map {“con_L8yhU7mr5C” => [Connection]}, “remoteStreamsCreated”: Map {“str_CAM_Irpq_con_L8yhU7mr5C” => true}, “sessionId”: “b7f3313a-3a0b-4964-aec5-0385c1a70e85”, “streamManagers”: [], “userHandlerArrowHandler”: WeakMap {}}, “type”: “exception”}

Please, send an email to commercial@openvidu.io get the new version of react-native-adapter artifact.

Regards

1 Like