error after transport close

After webrtctranport.close() I’m getting such error in the log:

[ERROR]  (node:12661) UnhandledPromiseRejectionWarning: Error: Transport not found
    at Channel._processMessage (/root/Lebenshilfe/node_modules/mediasoup/lib/Channel.js:217:37)
    at Socket.Channel._consumerSocket.on (/root/Lebenshilfe/node_modules/mediasoup/lib/Channel.js:77:34)
    at Socket.emit (events.js:198:13)
    at Socket.EventEmitter.emit (domain.js:448:20)
    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)

I’ve tried to try/catch it in different places but can’t find where it started in our code.
P.S. We have 2 servers connected with pipetransport and error does not appeared on server with original streams, only on piped one.

Without enabling debugging is impossible to figure out anything.

Enbling debugging has opened the whole picture for me. There was one excess stats request.

1 Like