# Media soup always returing last producer

**URL:** <https://mediasoup.discourse.group/t/media-soup-always-returing-last-producer/4531>\
**Category:** mediasoup libraries\
**Created:** [September 2, 2022, 2:45pm UTC](https://mediasoup.discourse.group/t/media-soup-always-returing-last-producer/4531 "2022-09-02T14:45:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nashbe26](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/nashbe26/32/1709_2.png) [@nashbe26](https://mediasoup.discourse.group/u/nashbe26)\
**Post date:** [September 2, 2022, 2:45pm UTC](https://mediasoup.discourse.group/t/media-soup-always-returing-last-producer/4531/1 "2022-09-02T14:45:55Z")

</div>

Hello,

I am trying to create multiroom boracast app.

I created a router from every room using room name trasnport id audio and video ids and consumers. I created a broadcast channel then i joined as viewer than i created an other one and i joined as viewer too here everything worked correctly.  
Then i joined as a viewer in the first room media soup render the second room broadcast although i dispatched every room with here router and parameters.

I t

i got this error in the logs consume failed Error: Producer with id “xxxxxxx-xxxxxxx-xxxxxxx” not found.

Any ideas about this problem

---

<div class="post-metadata">

**Author:** ![zaidiqbal](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/zaidiqbal/32/1498_2.png) [@zaidiqbal](https://mediasoup.discourse.group/u/zaidiqbal)\
**Post date:** [September 2, 2022, 3:01pm UTC](https://mediasoup.discourse.group/t/media-soup-always-returing-last-producer/4531/2 "2022-09-02T15:01:38Z")

</div>

The error states that the producer you are trying to consume from the specified router doesn’t exist on that router.

Something wrong with your signaling process like rooms getting mixed up etc. You might be asking router of room\_1 to consume the producer from room\_2.

Try putting console logs on your node server to make sure things are going to the right spot.

---

<div class="post-metadata">

**Author:** ![nashbe26](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/nashbe26/32/1709_2.png) [@nashbe26](https://mediasoup.discourse.group/u/nashbe26)\
**Post date:** [September 5, 2022, 9:27am UTC](https://mediasoup.discourse.group/t/media-soup-always-returing-last-producer/4531/3 "2022-09-05T09:27:54Z")

</div>

yes it was a problem with the router. When i tried to implement router.createWebRtcTransport i chose the wrong the router.

---

<div class="post-metadata">

**Author:** ![zaidiqbal](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/zaidiqbal/32/1498_2.png) [@zaidiqbal](https://mediasoup.discourse.group/u/zaidiqbal)\
**Post date:** [September 5, 2022, 10:15am UTC](https://mediasoup.discourse.group/t/media-soup-always-returing-last-producer/4531/4 "2022-09-05T10:15:29Z")

</div>

Glad it is resolved, marked the appropriate answer as solution.
