If you have an issue that this page does not address, see the Google Cast Support page to get answers to your questions.
Cast SDK error codes
Error codes related to the Cast SDK sent by error events or media error messages.
Name | Code | Description | Solution |
---|---|---|---|
APP
|
900 | Returned when an error occurs outside of the framework (e.g., if an event handler throws an error). | Investigate the error that is outside the cast framework. |
BREAK_CLIP_LOADING_ERROR
|
901 | Returned when break clip load interceptor fails. | Examine the contents of the break clips. |
BREAK_SEEK_INTERCEPTOR_
|
902 | Returned when break seek interceptor fails. | Check to ensure the break seek interceptor is correct. |
IMAGE_ERROR
|
903 | Returned when an image fails to load. | Verify the image URL points to the correct location. |
LOAD_INTERRUPTED
|
904 | A load was interrupted by a stop, or by another load. | Check to see if another action caused the load to be interrupted. |
LOAD_FAILED
|
905 | A load command failed. | Verify the load request is set up properly and the media is able to play. |
MEDIA_ERROR_MESSAGE
|
906 | An error message was sent to the sender. | Check either the Web Receiver or the sender for information on the error. |
GENERIC
|
909 | Returned when an unknown error occurs. | Something unexpected has occurred. This should be rare. |
Media Player Library error codes
Playback-related error messages from MPL sent by error events or media error messages.
- When using the media session to generate a request on EME, we encountered a key error.
- Failed to initialize EME media keys.
- no sps
- invalid video quality
- invalid audio quality
- invalid audio codec private data
- invalid protection info
- no quality level
- unknown media
Shaka player error codes
For error codes related to Shaka Player, see the Shaka Player Error class documentation .
Common network errors
HTTP Error | Status Code | Description | Solution |
---|---|---|---|
BAD_REQUEST
|
400 | The request could not be understood by the server due to malformed syntax. The client SHOULD NOT repeat the request without modifications. | Something is wrong with the url. Check with application developers |
UNAUTHORIZED
|
401 | The request requires user authentication | Check application to see if proper auth information is present. |
NOT_FOUND
|
404 | Client can communicate with server but server could not find what was requested | Developers checks url resources and ensures they are there. |
REQUEST_TIMEOUT
|
408 | The client did not produce a request within the time that the server was prepared to wait. The client MAY repeat the request without modifications at any later time. | This could be a resource (server scalability) or real network issue. |
INTERNAL_SERVER_
|
500 | The server encountered an unexpected condition which prevented it from fulfilling the request. | Developers check their server problem. |
BAD_GATEWAY
|
502 | The server, while acting as a gateway or proxy, received an invalid response from the upstream server it accessed in attempting to fulfill the request. | Developers check their server configuration. |
SERVICE_UNAVAILABLE
|
503 | The server is currently unable to handle the request due to a temporary overloading or maintenance of the server. The implication is that this is a temporary condition which will be alleviated after some delay. | Developers check their server configuration, especially the scalability of their services. |
GATEWAY_TIMEOUT
|
504 | The server, while acting as a gateway or proxy, did not receive a timely response from the upstream server specified by the URI. | Developers check server configuration and connection between their edge servers and origin nodes. |
Notes
An error code followed by an asterisk (*) can have further error codes appended to it. The format is:
{Error Code}{Closure Network Error Code}{HTTP Status Code}
For more info, see HTTP Status Code .
Example 3016404
has three parts:
301 | Segment network error. |
6 | HTTP error. |
404 | HTTP not found status. |
The nature of network errors- The reason some of these errors are actionable while others are not is due to the nature of network operations. For example, error 3018408 indicating a timeout could mean a bad connection for the user, where neither the Cast team nor the developers can do much about it; beware it could also mean the developer's CDN is having issues as well. On the other hand, an error 3116403 means that the manifest request is successfully made but the server refuses to serve it. This could be CORS, auth, or any other server or integration issues that developers should look at.