# Internal Server Error When Linking Sonos

**URL:** <https://forums.plex.tv/t/internal-server-error-when-linking-sonos/848489>\
**Category:** Plex Players\
**Tags:** sonos\
**Created:** [July 26, 2023, 3:30pm UTC](https://forums.plex.tv/t/internal-server-error-when-linking-sonos/848489 "2023-07-26T15:30:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![unkn0wn\_1](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/unkn0wn_1/32/111307_2.png) [@unkn0wn\_1](https://forums.plex.tv/u/unkn0wn_1)\
**Post date:** [July 26, 2023, 3:30pm UTC](https://forums.plex.tv/t/internal-server-error-when-linking-sonos/848489/1 "2023-07-26T15:30:43Z")

</div>

Server Version#: 1.32.5.7349  
Player Version#: Plex Web 4.111.1

I seem to be having the same issue that is described in this thread:

> [@Sonos.plex.tv : Internal Server Error](https://forums.plex.tv/t/sonos-plex-tv-internal-server-error/797351/14):
>
> Attn: @chrisc I have the identical problem as the original poster. Lifetime Plex Pass subscriber since 2018, Sonos user for multiple years, but this is the first time I’m trying to get the two to work together. When I visit [Sign In | Plex](https://plex.tv/users/other-services) and try “Link your Sonos account”, I also see an “Internal Server Error”. I get the same result if I try to click the equivalent “Link your Sonos account” link in the players menu of the Plex web client. This is the Plex account associated with my forum accou…

I am unable to link my Sonos account to my Plex account. I have tried linking from the “other services” page ([https://plex.tv/users/other-services](https://plex.tv/users/other-services)) as well as from the “cast” dropdown in the web app. Each time I get a 500 error response, “Internal Server Error”.

This issue persists on multiple different networks, with different ISPs, as well as on cellular data. This issue has persisted for me over several weeks, so I don’t think this is a temporary network issue. I believe there is some bad data associated with my account as described in the previous thread I have linked.

Here is the raw HTTP request and response via `curl`:

```auto
curl -i 'https://sonos.plex.tv/link?X-Plex-Token=REDACTED&next=https://plex.tv/users/other-services' \
  -H 'authority: sonos.plex.tv' \
  -H 'accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8' \
  -H 'accept-language: en-US,en;q=0.9' \
  -H 'cache-control: max-age=0' \
  -H 'cookie: plex_utm=REDACTED' \
  -H 'referer: https://plex.tv/' \
  -H 'sec-ch-ua: "Not.A/Brand";v="8", "Chromium";v="114", "Brave";v="114"' \
  -H 'sec-ch-ua-mobile: ?0' \
  -H 'sec-ch-ua-platform: "macOS"' \
  -H 'sec-fetch-dest: document' \
  -H 'sec-fetch-mode: navigate' \
  -H 'sec-fetch-site: same-site' \
  -H 'sec-fetch-user: ?1' \
  -H 'sec-gpc: 1' \
  -H 'upgrade-insecure-requests: 1' \
  -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36' \
  --compressed
HTTP/2 500 
date: Wed, 26 Jul 2023 14:18:39 GMT
content-type: text/plain; charset=utf-8
content-length: 21
access-control-allow-origin: *
cache-control: no-store
strict-transport-security: max-age=31536000; includeSubDomains; preload
x-frame-options: SAMEORIGIN
x-xss-protection: 1; mode=block
cf-cache-status: DYNAMIC
server: cloudflare
cf-ray: 7ecd45eb68136384-ORD

Internal Server Error

```

@chrisc or @vanstinator would it be possible to perform the same steps on Plex’s end for my account that are described here? [https://forums.plex.tv/t/sonos-plex-tv-internal-server-error/797351/15](https://forums.plex.tv/t/sonos-plex-tv-internal-server-error/797351/15)

---

<div class="post-metadata">

**Author:** ![unkn0wn\_1](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/unkn0wn_1/32/111307_2.png) [@unkn0wn\_1](https://forums.plex.tv/u/unkn0wn_1)\
**Post date:** [July 27, 2023, 2:44pm UTC](https://forums.plex.tv/t/internal-server-error-when-linking-sonos/848489/2 "2023-07-27T14:44:25Z")

</div>

While I’m not able to link my Sonos account from Plex (via [other services](https://plex.tv/users/other-services) or the Plex Web UI), if I attempt to add my Plex account in the Sonos mobile app the authorization step does succeed.

After adding the Plex account in the Sonos app I receive the error “Unable to browse music” when attempting to access Plex. This user is reporting the same issue: [Plex on Sonos: Unable to Browse Music](https://forums.plex.tv/t/plex-on-sonos-unable-to-browse-music/844729)

---

<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 25, 2023, 2:44pm UTC](https://forums.plex.tv/t/internal-server-error-when-linking-sonos/848489/3 "2023-10-25T14:44:49Z")

</div>

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