Got an error in 10th room

                        sent.reject(new Error(msg.reason));

Error: Channel request handler with ID c1f414e7-b3d9-48c9-a102-f78b31034eef not found [method:consumer.resume]
    at Channel.processMessage (/usr/src/app/node_modules/mediasoup/node/lib/Channel.js:199:37)
    at Socket.<anonymous> (/usr/src/app/node_modules/mediasoup/node/lib/Channel.js:69:34)
    at Socket.emit (node:events:517:28)
    at addChunk (node:internal/streams/readable:368:12)
    at readableAddChunk (node:internal/streams/readable:341:9)
    at Readable.push (node:internal/streams/readable:278:10)
    at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)

I have rooms of 10 players each. Everything works fine, but after 10-12 rooms this error appeared.
This is a recurring bug after a certain number of rooms. 500 ports are allocated for connection.
Tell me where to dig?

Node.js v18.19.0
mediasoup: 3.12.3

To me it looks like the consumer you are trying to resume doesn’t exist

1 Like

Yes, i forgot add try catch for cosumer.resume thanks