Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An error is caused and in 2 js files there is a note marked "TODO handle null errors", #29

Open
Madriix opened this issue Feb 20, 2023 · 0 comments

Comments

@Madriix
Copy link

Madriix commented Feb 20, 2023

An error is caused and in 2 js files there is a note marked "TODO handle null errors" and this error occurs.

First here is the error when I launch for example my microphone or camera:

/home/debian/node/dcs/mediasoup/src/Peer.js:24
    let producer = await this.transports.get(producerTransportId).produce({
                                                                 ^

TypeError: Cannot read properties of undefined (reading 'produce')
    at Peer.createProducer (/home/debian/node/dcs/mediasoup/src/Peer.js:24:66)
    at Room.<anonymous> (/home/debian/node/dcs/mediasoup/src/Room.js:92:56)
    at new Promise (<anonymous>)
    at Room.produce (/home/debian/node/dcs/mediasoup/src/Room.js:90:12)
    at Socket.<anonymous> (/home/debian/node/dcs/mediasoup/src/app.js:175:58)
    at Socket.emit (node:events:513:28)
    at Socket.emitUntyped (/home/debian/node/dcs/mediasoup/node_modules/socket.io/dist/typed-events.js:69:22)
    at /home/debian/node/dcs/mediasoup/node_modules/socket.io/dist/socket.js:614:39
    at process.processTicksAndRejections (node:internal/process/task_queues:77:11)

Node.js v18.12.1

I think the error occurs with the 2 comments there are here whose note is "TODO":

Does anyone have an idea how to fix/make them?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant