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?
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
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?