Sonos Radio Stream Checker

Work out why a radio stream URL fails on Sonos. Every redirect hop is checked against the real Sonos trust store and the TLS capabilities of S1 and S2 firmware, which differ.

Overview

Sonos players are not browsers. Their firmware ships a fixed trust store and a narrow set of TLS versions, ciphers and elliptic curves. A stream that plays perfectly in every browser can still be rejected by a speaker, and the speaker will not tell you why. This tool answers that question.

S1 and S2 are reported separately because their capabilities genuinely differ. A stream is frequently compatible with S2 and not S1, which is exactly the case that is hardest to diagnose by hand.

Redirects are followed and each hop is checked in its own right. That matters: a stream often starts on a modern host and redirects to an older CDN, and it is the last hop that decides whether playback works.

Web interface

Paste the stream URL and pick a region. The check then runs from an exit point in that country, which is the point of the selector: geo-restricted streams and geo-routed CDNs answer differently depending on where the request comes from, so checking a UK station from Germany can produce a misleading result.

Available regions are Germany (de, the default), United States (us), United Kingdom (gb) and France (fr). The picker starts on the region that matches your time zone. A banner reports whether that routing is currently available, and a region whose exit is down cannot be picked until it is back.

What gets checked

Up to sixteen checks run per hop. Cipher Suites, Elliptic Curves, Certificate Chain and Sonos Trust Status return a verdict for S1 and S2 each; the others pass or fail for both. Three of them appear only when something is wrong, and are listed last.

CheckWhat it tells you
ConnectionWhether the host answers at all.
DNS ResolutionWhether the hostname resolves, and to what.
IP Address CheckWhether the host has an IPv4 address. A host with IPv6 addresses only is flagged.
ProtocolOn HTTPS hops: that the connection is encrypted.
TLS VersionThe negotiated version and which versions the server offers, against the TLS 1.2 floor both firmware generations require.
Cipher SuitesThe usual culprit. Old players accept a short list.
Certificate ChainValidity of every certificate presented, and whether the chain is complete. A server sending only its own certificate is missing its intermediate, which browsers hide and players do not.
Sonos Trust StatusWhether the root is in the Sonos trust bundle. A certificate every browser trusts can still fail here, and then fails on the player: a chain the bundle does not cover makes the hop incompatible. Only when the bundle cannot be loaded is a list of root names used instead, and then the check informs without deciding.
DNS Name MatchWhether the certificate actually covers the hostname. A wildcard stands for exactly one label, so *.example.com covers a.example.com but not a.b.example.com.
Elliptic CurvesCurve support, the second most common silent failure.
Stream MetadataContent type and codec of what is actually served.
M3U Playlist DetectedThe URL is a playlist, not a stream.
PLS Playlist DetectedAs above, other playlist format.
SecurityOnly on a refused hop. A redirect target or playlist entry pointing into a private or reserved network is reported rather than followed.
Playlist NestingOnly when a playlist names another playlist. The second one is reported, not opened.
Time limitOnly when the check ran out of time. It ends the chain and marks where the check stopped; it is not counted as a hop.

The trust bundle is fetched from Sonos directly and cached for 30 days, so trust verdicts reflect what players actually ship rather than what the operating system trusts.

Sonos follows at most four redirect hops. A chain longer than that fails on the player even when every individual hop is perfectly valid, so the response reports too_many_hops separately from the compatibility verdicts.

API

POST /check/sonos/stream

JSON request body.

NameTypeDefaultDescription
urlstringrequired The stream URL. http or https only, at most 2048 characters.
regionenumde de for Germany, us, gb or fr. An unknown value falls back to Germany rather than failing.
shell
$ curl -s -X POST https://api.troubleshooting.tools/v1/check/sonos/stream \
    -H "Content-Type: application/json" \
    -d '{"url": "https://stream.example.com/radio.mp3", "region": "de"}' | jq .
json
{
  "url": "https://stream.example.com/radio.mp3",
  "compatible_s1": false,
  "compatible_s2": true,
  "hop_count": 2,
  "sonos_max_hops": 4,
  "too_many_hops": false,
  "m3u_detected": false,
  "pls_detected": false,
  "chain_analysis": [
    {
      "url": "https://stream.example.com/radio.mp3",
      "http_code": 302,
      "location": "https://cdn.example.net/radio.mp3",
      "compatible_s1": true,
      "compatible_s2": true,
      "checks": [
        { "name": "TLS Version", "passed": true },
        { "name": "Cipher Suites", "passed": true, "compatible_s1": true, "compatible_s2": true },
        { "name": "Certificate Chain", "passed": true, "compatible_s1": true, "compatible_s2": true, "certificates": [] }
      ]
    }
  ]
}

Response fields

FieldTypeDescription
compatible_s1booleanOverall verdict for S1. False if any hop fails for S1, or the stream behind a playlist does.
compatible_s2booleanSame for S2.
chain_analysisarrayOne entry per redirect hop, in order. Each carries url, http_code, location, its own compatibility verdicts and the checks array; the certificates are in the Certificate Chain check.
hop_countintegerNumber of requests in the chain, the submitted URL included. A "Time limit" marker is not counted.
sonos_max_hopsintegerWhat players allow. Currently 4.
too_many_hopsbooleanTrue when hop_count exceeds that.
m3u_detectedbooleanThe URL is an M3U playlist.
m3u_recommendationstring or nullThe inner URL, when a playlist was detected; otherwise null.
pls_detectedbooleanAs above for PLS.
pls_recommendationstring or nullAs above.
stream_checkobjectPresent on a hop that turned out to be a playlist. The stream URL named inside it, checked as a request of its own. Shaped like a hop, with redirect_chain, hop_count and too_many_hops of its own. Its compatible_s1 and compatible_s2 are the stream's verdict, and they are part of the top-level verdict: a playlist that loads but names a stream a player cannot play is not compatible.

Read the top-level verdicts first, then walk chain_analysis to find which hop and which check caused a false. A playlist detection does not mean you are checking the wrong URL: the stream it names is followed and checked for you, under stream_check.

Fields that appear only in certain situations

FieldWhereMeaning
chain_completeCertificate Chain checkFalse when the server sent only its own certificate and no intermediate. The hop is marked incompatible with both S1 and S2.
tls_diagnosisConnection check, error_infoWhy a handshake failed: verify_code and verify_text are the OpenSSL verification codes, so 20 and 21 are the missing intermediate, 10 an expired certificate and 62 a hostname mismatch. certs_sent is how many certificates the server presented.
redirect_chainstream_checkThe further hops the playlist's stream URL goes through, each with its own checks. Empty when it answers directly.
nested_playlist_not_followedstream_checkTrue when the playlist named another playlist. It is reported and not opened, since such a chain has no end.

A playlist entry is treated as a new request, not as further hops of the first one. That is what happens on the player: it fetches the playlist, reads a URL out of the body and asks again, so the stream URL starts with a full four hop budget of its own. Its hop_count is therefore separate from the one at the top level.

Errors

Validation failures return {"error": "..."} at HTTP 200, not 4xx. Test for the presence of an error key rather than branching on the status code.

MessageCause
No URL providedMissing url.
URL exceeds maximum length of 2048 charactersLonger than that.
Invalid URL formatUnparseable URL.
Only HTTP and HTTPS protocols are allowedSome other scheme.
URLs pointing to private or reserved IP ranges are not allowedResolves to a non-public address.
URLs pointing to localhost are not allowedAs above.

When the check cannot go out through a regional exit, the answer is HTTP 503 with a message saying so, and nothing is sent to the stream host.

Limits

A full check opens real TLS connections to every hop and can take several seconds. Allow a generous client timeout; 30 seconds is a sensible floor. A check is stopped after 45 seconds however far it has come, and a chain cut short that way says so in a hop of its own, so a short answer is never mistaken for a complete one.

A check holds a server worker for its whole duration, and there are sixteen of those for the entire site. So: one check at a time per address, two across the whole site, and 20 checks per address in ten minutes. Over your own share the answer is HTTP 429 with Retry-After; when both slots are busy it is 503, and both come back at once rather than after a wait. Above that the edge allows 5 requests per second per address with a burst of 5.

Privacy

Checked URLs appear in server logs for operational purposes and are not sold or shared. The request reaches the stream host from an exit point in the selected region, Germany included, not from your address.