mediasoup-sfu-webrtc-video-rooms icon indicating copy to clipboard operation
mediasoup-sfu-webrtc-video-rooms copied to clipboard

App crashes when connecting/disconnecting?

Open ranavjk opened this issue 2 years ago • 1 comments

I was trying to run this app. Sometimes the rooms peers connect and disconnect fine. But sometimes the app crashes. Here is the console.log when the app crashes: /home/ec2-user/www/node_modules/mediasoup/lib/Channel.js:199 sent.reject(new Error(msg.reason)); ^

Error: [method:transport.connect] at Channel._processMessage (/home/ec2-user/www/node_modules/mediasoup/lib/Channel.js:199:37) at Socket. (/home/ec2-user/www/node_modules/mediasoup/lib/Channel.js:61:34) at Socket.emit (node:events:365:28) at addChunk (node:internal/streams/readable:314:12) at readableAddChunk (node:internal/streams/readable:289:9) at Socket.Readable.push (node:internal/streams/readable:228:10) at Pipe.onStreamRead (node:internal/stream_base_commons:190:23) [nodemon] app crashed - waiting for file changes before starting...

I have tried to reproduce the error, but it happens randomly. Any suggestions?

ranavjk avatar Sep 08 '21 15:09 ranavjk

Hello @ranavjk, Try updating the dependencies, mediasoup-server to latest and recompiling the mediasoup-client to latest and see if the problem still persists? Regards

miroslavpejic85 avatar Dec 28 '21 15:12 miroslavpejic85