# \[Bug\]: Plexamp can't cast to Sonos

**URL:** <https://forums.plex.tv/t/bug-plexamp-cant-cast-to-sonos/727052>\
**Category:** Plex Labs\
**Tags:** sonos, plexamp\
**Created:** [July 6, 2021, 10:11am UTC](https://forums.plex.tv/t/bug-plexamp-cant-cast-to-sonos/727052 "2021-07-06T10:11:33Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![bertv96](https://avatars.discourse-cdn.com/v4/letter/b/5f8ce5/32.png) [@bertv96](https://forums.plex.tv/u/bertv96)\
**Post date:** [July 6, 2021, 10:11am UTC](https://forums.plex.tv/t/bug-plexamp-cant-cast-to-sonos/727052/1 "2021-07-06T10:11:33Z")

</div>

Hi everyone,

I love the plexamp App on mobile (android) and my macbook.  
Works like a charm.

Only there is a severe bug when playing music to a Sonos speaker.  
When on my phone or macbook, I “cast” to my Sonos speaker (doesn’t matter which one).  
Then the player starts acting very weird. Skips a few songs and automatically jumps to the last second of the song and ending in a paused state.  
When “resuming” (clicking on play again). It does the same thing. This has been for while now.

Basically whenever I can not cast to a sonos speaker of sonos group.  
I have a screenrecording attached. [https://photos.app.goo.gl/n5LZNN8PCXhQAox87](https://photos.app.goo.gl/n5LZNN8PCXhQAox87)

For the record in the “normal” plex app, it all works perfectly.

Hopefully this bug is already known and a fix is already in progress.  
Could you let me know if this bug is already on the radar on your end ?

Thanks again for making this great app.  
If you have any questions, please ask.

Bert

---

<div class="post-metadata">

**Author:** ![elan](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/elan/32/5_2.png) [@elan](https://forums.plex.tv/u/elan)\
**Post date:** [July 7, 2021, 5:31pm UTC](https://forums.plex.tv/t/bug-plexamp-cant-cast-to-sonos/727052/2 "2021-07-07T17:31:47Z")

</div>

Can you try again? There were a few cloud issues with Sonos over the last few days.

---

<div class="post-metadata">

**Author:** ![bertv96](https://avatars.discourse-cdn.com/v4/letter/b/5f8ce5/32.png) [@bertv96](https://forums.plex.tv/u/bertv96)\
**Post date:** [July 8, 2021, 1:47pm UTC](https://forums.plex.tv/t/bug-plexamp-cant-cast-to-sonos/727052/3 "2021-07-08T13:47:56Z")

</div>

Hi Elan,

Nope still doesn’t work. I’ve never had problems with Sonos before.  
On the main Plex app it works perfectly. Only on Plexamp it’s broken.  
I can connect correctly with my Sonos speakers, but after connecting it starts skipping a few songs, …

I guess the problem is in the React code somewhere 😛

---

<div class="post-metadata">

**Author:** ![elan](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/elan/32/5_2.png) [@elan](https://forums.plex.tv/u/elan)\
**Post date:** [July 8, 2021, 6:23pm UTC](https://forums.plex.tv/t/bug-plexamp-cant-cast-to-sonos/727052/4 "2021-07-08T18:23:26Z")

</div>

Can you post logs?

---

<div class="post-metadata">

**Author:** ![bertv96](https://avatars.discourse-cdn.com/v4/letter/b/5f8ce5/32.png) [@bertv96](https://forums.plex.tv/u/bertv96)\
**Post date:** [July 8, 2021, 6:38pm UTC](https://forums.plex.tv/t/bug-plexamp-cant-cast-to-sonos/727052/5 "2021-07-08T18:38:16Z")

</div>

Hi,

How can i generate logs ?

---

<div class="post-metadata">

**Author:** ![elan](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/elan/32/5_2.png) [@elan](https://forums.plex.tv/u/elan)\
**Post date:** [July 8, 2021, 7:20pm UTC](https://forums.plex.tv/t/bug-plexamp-cant-cast-to-sonos/727052/7 "2021-07-08T19:20:58Z")

</div>

Those are sever logs. I need the Plexamp.log

---

<div class="post-metadata">

**Author:** ![bertv96](https://avatars.discourse-cdn.com/v4/letter/b/5f8ce5/32.png) [@bertv96](https://forums.plex.tv/u/bertv96)\
**Post date:** [July 8, 2021, 8:05pm UTC](https://forums.plex.tv/t/bug-plexamp-cant-cast-to-sonos/727052/8 "2021-07-08T20:05:38Z")

</div>

> [@bertv96](#):
>
> Hi,
> 
> How can i generate logs ?

How can i generate plexamp.logs ?

---

<div class="post-metadata">

**Author:** ![elan](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/elan/32/5_2.png) [@elan](https://forums.plex.tv/u/elan)\
**Post date:** [July 8, 2021, 8:23pm UTC](https://forums.plex.tv/t/bug-plexamp-cant-cast-to-sonos/727052/9 "2021-07-08T20:23:42Z")

</div>

on mobile, settings \> advanced \> debugging

---

<div class="post-metadata">

**Author:** ![bertv96](https://avatars.discourse-cdn.com/v4/letter/b/5f8ce5/32.png) [@bertv96](https://forums.plex.tv/u/bertv96)\
**Post date:** [July 8, 2021, 8:45pm UTC](https://forums.plex.tv/t/bug-plexamp-cant-cast-to-sonos/727052/10 "2021-07-08T20:45:52Z")

</div>

Aha, thanks. I was looking for it on my desktop.

I’ve replace my public IP with XXXXXXX.  
What i’ve done is the following:

- Open plexamp
- Connect with my Sonos (Slaapkamer =\> this is bedroom in Dutch)
- Click on Library Radio

Some more info about my setup:  
Plex is running in docker with Traefik as a reverse proxy before it.

Here is the log file:  
[Plexamp.1.log](https://forums.plex.tv/uploads/short-url/nOr5IjsHk2tuZKph1TO1tMCMErJ.log) (212.2 KB)

Thanks in advance

---

<div class="post-metadata">

**Author:** ![elan](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/elan/32/5_2.png) [@elan](https://forums.plex.tv/u/elan)\
**Post date:** [July 8, 2021, 9:01pm UTC](https://forums.plex.tv/t/bug-plexamp-cant-cast-to-sonos/727052/11 "2021-07-08T21:01:08Z")

</div>

There’s something weird going on:

```auto
Error issuing request to player Slaapkamer: /player/timeline/poll?wait=1&includeMetadata=1&commandID=196&type=music, HTTP status -6,

```

-6 is CURLE\_COULDNT\_RESOLVE\_HOST (6)

It should be sending the commands to [https://sonos.plex.tv](https://sonos.plex.tv)

---

<div class="post-metadata">

**Author:** ![bertv96](https://avatars.discourse-cdn.com/v4/letter/b/5f8ce5/32.png) [@bertv96](https://forums.plex.tv/u/bertv96)\
**Post date:** [July 8, 2021, 9:20pm UTC](https://forums.plex.tv/t/bug-plexamp-cant-cast-to-sonos/727052/12 "2021-07-08T21:20:23Z")

</div>

Is it something I did wrong in my setup or maybe a small bug ?

---

<div class="post-metadata">

**Author:** ![elan](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/elan/32/5_2.png) [@elan](https://forums.plex.tv/u/elan)\
**Post date:** [July 8, 2021, 9:46pm UTC](https://forums.plex.tv/t/bug-plexamp-cant-cast-to-sonos/727052/13 "2021-07-08T21:46:59Z")

</div>

It seems more likely to be something with your network configuration, I’m not sure why else that domain would fail to resolve.

---

<div class="post-metadata">

**Author:** ![bertv96](https://avatars.discourse-cdn.com/v4/letter/b/5f8ce5/32.png) [@bertv96](https://forums.plex.tv/u/bertv96)\
**Post date:** [July 8, 2021, 9:57pm UTC](https://forums.plex.tv/t/bug-plexamp-cant-cast-to-sonos/727052/14 "2021-07-08T21:57:33Z")

</div>

> [@elan](#):
>
> ```auto
> Error issuing request to player Slaapkamer: /player/timeline/poll?wait=1&includeMetadata=1&commandID=196&type=music, HTTP status -6,
> 
> ```

I understand, but why does it work on the normal plex app.  
I suppose these hit the same endpoints with the same payloads ?

---

<div class="post-metadata">

**Author:** ![bertv96](https://avatars.discourse-cdn.com/v4/letter/b/5f8ce5/32.png) [@bertv96](https://forums.plex.tv/u/bertv96)\
**Post date:** [July 8, 2021, 10:08pm UTC](https://forums.plex.tv/t/bug-plexamp-cant-cast-to-sonos/727052/15 "2021-07-08T22:08:39Z")

</div>

Mmm, i’ve removed the traefik in the docker-compose setup.  
Only port that is exposed in my docker file is 32400.

I’ve no idea why it breaks with traefik before Plex … ☹  
But that’s on my end to figure that out.

For now this “issue” can be closed.

Thanks for the help.  
When I have more info I will post it here.

---

<div class="post-metadata">

**Author:** ![elan](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/elan/32/5_2.png) [@elan](https://forums.plex.tv/u/elan)\
**Post date:** [July 8, 2021, 10:09pm UTC](https://forums.plex.tv/t/bug-plexamp-cant-cast-to-sonos/727052/16 "2021-07-08T22:09:26Z")

</div>

Thanks for the update!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [October 6, 2021, 10:09pm UTC](https://forums.plex.tv/t/bug-plexamp-cant-cast-to-sonos/727052/17 "2021-10-06T22:09:31Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
