# Error codes


The player runs a set of diagnostic checks. Each failed check is a _trouble_, identified by an error name.
Call `get_troubles()` in `splayer_troubles_api-2.h` to retrieve the player's current troubles.
See `build_troubles` in the [reference app](/sdk/reference-app)'s `src/splayer_json.c` for an example. The set of troubles can vary between SDK versions.

The current possible troubles:

| Error name                     | Check                                                                                                  | Condition                                                               |
| ------------------------------ | ------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------- |
| ERROR_VALID_IP                 | Checks the network configuration.                                                                      | Fails if no network config is found.                                    |
| ERROR_PING_SOUNDTRACK          | Checks connectivity to the Soundtrack internal endpoints the player needs to work as expected.         | Fails if the player can't connect to any of these endpoints.            |
| ERROR_PING_DNS                 | Checks DNS lookup.                                                                                     | Fails if DNS lookup doesn't work.                                       |
| ERROR_PING_CDN                 | Checks connectivity to the CDN servers the player downloads and streams music from.                    | Fails if the player can't connect to the endpoints.                     |
| ERROR_PING_CDN_IP              | Checks the success rate of connections to the CDN servers, to make sure music can download and stream. | Fails if the player has a low success rate.                             |
| ERROR_PING_CERT                | Checks if a proxy is used. Proxies are not supported.                                                  | Fails if a proxy is found.                                              |
| ERROR_ONLINE_STATE             | Checks the online state.                                                                               | Fails if the player is offline or many requests fail.                   |
| ERROR_PAIRED                   | Checks if the player is connected to a sound zone.                                                     | Fails if not connected.                                                 |
| ERROR_ACTIVE_SUBSCRIPTION      | Checks if the player has an active subscription.                                                       | Fails if inactive.                                                      |
| ERROR_CHANNEL_ASSIGNED         | Checks if any source of music is assigned.                                                             | Fails if no music is assigned.                                          |
| ERROR_DOWNLOADED_DATA          | Checks downloaded data for the assigned music.                                                         | Fails if nothing is downloaded.                                         |
| ERROR_NO_VOLUME                | Checks the volume level.                                                                               | Fails if the volume is set to zero.                                     |
| ERROR_DISKCACHE_LOW            | Checks free disk space.                                                                                | Fails if the free disk space is below 1 GB.                             |
| ERROR_DISKCACHE_CRITICALLY_LOW | Checks free disk space.                                                                                | Fails if the free disk space is below 256 MB.                           |
| ERROR_PAYMENT_EXPIRED          | Checks payment status.                                                                                 | Fails if the connected zone doesn't have a valid and paid subscription. |
| ERROR_CLOCK_WRONG              | Checks the server time offset.                                                                         | Fails if the device time differs from server time by more than 15 min.  |

Deprecated and unsupported Player Library versions raise separate errors on the sound zone; see [Release management](/sdk/concepts/release-management#deprecation-and-unsupported-versions).
