createProducerTransport Error

On my node.js server, some times I get this error, It suddenly started to appear, 4-5 days back it was working fine. I am using mediasoup 3.4.1 on Linux and Mac.

createProducerTransport —
(node:89244) UnhandledPromiseRejectionWarning: Error: no available port [udp:, attempt:101]
at Channel._processMessage (/Volumes/Projects/apps/letskinect/events12/server/node_modules/mediasoup/lib/Channel.js:220:37)
at Socket.Channel._consumerSocket.on (/Volumes/Projects/apps/letskinect/events12/server/node_modules/mediasoup/lib/Channel.js:80:34)
at Socket.emit (events.js:198:13)
at addChunk (_stream_readable.js:288:12)
at readableAddChunk (_stream_readable.js:269:11)
at Socket.Readable.push (_stream_readable.js:224:10)
at Pipe.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)

So you have not open ports enough, just that. Read the documentation, please.

Thanks for the answer, On My localhost, all ports are open. I will check again and inform you. thanks again

I didn’t mean that. I mean that you may giving not enough port range to the mediasoup Worker. Or, probably, you are never closing mediasoup WebRtcTransports or Routers so available ports exhaust.