Producer 7d9f3eed-8158-4395-b398-4c6a1b82521c is closed: false
Producer transport a6920ff7-5716-44ea-be4e-b45bfbe25c3f is closed: false
Router 015b9fc0-42b6-4d7e-82b5-d109d0eeff1e is closed: false
2022-11-06T00:22:37.740Z mediasoup:ERROR:Router canConsume() | Producer with id "7d9f3eed-8158-4395-b398-4c6a1b82521c" not found
This error sadly pops up while trying to fire: router.canConsume();
As you can see its not actually closed and exists.
That simply means the producer doesn’t exist on the router there is no other way. You need to check the code to see what you are doing wrong. Or may be share some code so that we can see.
Isn’t the producer on ‘router’? It should be. Lets clarify, what you want is that you have producer on ‘router’ and you want to pipe it to ‘otherRouter’ so that it also become available on ‘otherRouter’ right?
producer is on otherRouter, I now see my mistake and changed them up but now it created even more chaos Error: Channel request handler with ID 009a526e-d946-4a05-a095-f5364add9557 already exists [method:transport.produce]
This is not the right way to create router. You should create router based upon the room. There can be multiple routers in one room. Don’t create them per user. Create them per call or room, one call can span over multiple routers, workers.
Then create rooms. You can say one room is for one game. Whenever there is a game create room on server then do all the stuff in there. Or simply just create router based upon the voicechat you have if you don’t want to call it room.