Android Common Error Codes
Updated: 2023-03-08 18:47:42
1. Chatroom Error Codes
| Error Code | Enum | Error Description | Cause and Phenomenon |
|---|---|---|---|
| 1050605 | CHECK_IMG_FAIL | Image review failed | 1. Sending an image in the chatroom, receiving Socket info indicating image review failure 2. Image sending unsuccessful 3. Toast prompt: Failed to send image |
| 1050117 | UPLOAD_IMG_FAIL | Image upload failed | 1. Failed to request image upload token, incorrect image format 2. Image upload failed 3. Error prompt: Failed to send image |
| 1050407 | CHATROOM_RESTRICT_MAX_VIEWER | Exceeded maximum concurrent viewers limit | 1. Logging into the chatroom, receiving socket info indicating exceeded maximum user limit 2. Login to chatroom failed 3. Error prompt: The live room is too popular, please try again later (1050407) |
2. Co-hosting Module Error Codes
| Error Code | Enum | Error Description | Cause and Phenomenon |
|---|---|---|---|
| 1060501 | ERROR_LINK_PERMISSION_DENIED | Failed to obtain co-hosting permission | 1. Requesting co-hosting permission, permission denied |
| 1060101 | NOTIFY_STREAM_PARAM_ERROR | Incorrect stream push parameters | 1. Before pushing stream, if channel ID or stream ID is empty, this error occurs 2. Error prompt: Stream push and co-hosting module error: errorCode=1060101 |
| 1060104 | GET_TOKEN_PARAM_ERROR | RTC initialization failed | 1. During RTC Token initialization, checks if channel ID is empty; if so, this error occurs 2. Co-hosting feature unavailable 3. Toast prompt: Co-hosting error: errorCode=1060104 |
| 1060105 | Request RTCToken response error | Request RTCToken response error | 1. Request exception when requesting RTCToken, usually a network issue 2. Toast prompt: Co-hosting error: errorCode=1060105 |
| 1060106 | GET_TOKEN_DATA_PARSE_ERROR | Token data parsing error | 1. RTCToken request successful, but error parsing JSON data 2. Toast prompt: Co-hosting error: 1060106 |
| 1060107 | GET_SESSION_ID_PARAM_ERROR | Parameters for requesting server-generated sessionId are empty | 1. Before requesting server-generated sessionId, validates channelId and streamId; if either is empty, this error occurs 2. Toast error prompt: Request parameters cannot be empty |
| 1060109 | GET_SESSION_ID_DATA_PARSE_ERROR | Failed to request server-generated sessionId | 1. Exception when requesting server-generated sessionId, mostly network-related 2. Console output: Stream push and co-hosting module error: errorCode=1060109 |
| 1060113 | GET_LINK_MIC_LIST_PARAM_ERROR | Incorrect parameters for getting co-hosting list | 1. Error getting co-hosting list, caused by empty roomId or sessionId 2. Co-hosting list does not display members 3. Error Toast prompt: Co-hosting error 1060113 |
| 1060114 | GET_LINK_MIC_LIST_RESPONSE_CODE_ERROR | Request error for getting co-hosting list | 1. Error requesting co-hosting list, mostly network-related 2. Co-hosting list does not display members 3. Error Toast prompt: Co-hosting error 1060114 |
| 1060116 | NOTIFY_LIVE_END_PARAM_ERROR | Incorrect parameters for notifying server of live end | 1. Notifying server of live end to stop stream push; if channelId or streamId is empty, this error occurs 2. Console output: Stream push and co-hosting module error: errorCode=1060116 |
| 1060117 | NOTIFY_LIVE_END_RESPONSE_CODE_ERROR | Exception when notifying server of live end | 1. Exception when notifying server of live end to stop stream push, mostly network-related |
| 1060118 | NOTIFY_LIVE_END_DATA_PARSE_ERROR | Error parsing server response data for live end | 1. Request for live end successful, but error parsing server response data 2. Does not affect Android ending the live; server receives the end notification |
| 1060119 | MIX_ACTION_PARAM_ERROR | Incorrect parameters for requesting CDN mix layout | 1. Requesting CDN mix layout; if appId or appSecret is empty, this error occurs 2. Error Toast prompt: Request parameters cannot be empty; Console output: Stream push and co-hosting module error: errorCode=1060119 |
| 1060120 | MIX_ACTION_RESPONSE_CODE_ERROR | Exception when requesting CDN mix layout | 1. Exception when requesting CDN mix layout, mostly network-related 2. Console output: Stream push and co-hosting module error: errorCode=1060120 |
| 1060121 | MIX_ACTION_DATA_PARSE_ERROR | Failed to request CDN mix layout, data parsing error | 1. Request for CDN mix layout successful, but error parsing API response data 2. Console output: Stream push and co-hosting module error: errorCode=1060121 |
3. Playback Module Error Codes
| Error Code | Enum | Error Description | Cause and Phenomenon |
|---|---|---|---|
| 1000401 | VIDEO_PLAY_ERROR | Playback video error | 1. Unable to play video; player displays [Playback Error: Video cannot be played, please check network settings (1000401-Main Video) + "Video Playback Path"] 2. Mostly due to issues with the original video |
| 1000402 | VIDEO_TIMEOUT_ERROR | Video loading timeout | 1. Player displays [Playback Error: Video cannot be played, please contact administrator (1000402-Main Video) + "Video Playback Path"] 2. Mostly due to poor network conditions |
| 1000407 | VIDEO_PATH_ERROR | Playback video path is empty | 1. Console prints error log: error: + 1000407 |
| 1000410 | VIDEO_ID_ERROR | Invalid playback video ID | 1. Caused by entering an incorrect vid when playing a playback video 2. Player displays [Video cannot be played, please contact administrator (1000410-Main Video) + "Video Playback Path"] |
| 1000422 | VIDEO_HEADERS_ERROR | Setting empty headers | 1. User sets empty headers when configuring the auxiliary player 2. Player displays [Video cannot be played, please contact administrator (1000422)] |
| 1000423 | VIDEO_HOST_ERROR | Setting empty host | 1. User sets empty host when configuring the auxiliary player 2. Player displays [Video cannot be played, please contact administrator (1000423)] |
| 1000508 | PLAYBACK_INFO_CODE_ERROR | Failed to request playback video info | 1. Playback video data request successful, but returned API code is not 200 2. Player displays [Playback video loading error, please retry] |
| 1000509 | PLAYBACK_INFO_DATA_ERROR | Playback video data is empty | 1. Playback video data request successful, but server returned empty data 2. Player displays [Playback video loading error, please retry] 3. Player displays playback error [Video loading failed, please contact administrator (1000509-Main Video) + "Video Playback Path"] |
| 1000510 | PLAYBACK_INFO_VID_ERROR | Playback video info fileUrl is empty | 1. Playback video info request successful, returned data is not empty, but FileUrl in returned data is empty 2. Player displays [Playback video loading error, please retry] 3. Player displays: [Playback Error: Video cannot be played, please contact administrator (1000510-Main Video) + "Video Playback Path"] |
| 1000511 | PLAYBACK_INFO_LOAD_ERROR | Playback info API request exception | 1. Exception when requesting playback video info, usually network-related 2. Player displays [Playback Error: Video cannot be played, please contact administrator (1000511-Main Video) + "Video Playback Path"] |
| 1000512 | LIVE_INFO_LOAD_ERROR | Live info API request exception | 1. Exception when requesting encrypted channelJson for live, usually network-related 2. After failure to request channelJson, attempts to request encrypted channelJson every 10 seconds 3. Player displays: [Playback Error: Video cannot be played, please contact administrator (1000512-Main Video) + "Video Playback Path"] |
| 1000514 | LIVE_INFO_CODE_ERROR | Failed to parse encrypted channelJson | 1. Request for encrypted channelJson successful, but server returned API code is not 200 2. After failure to request channelJson, attempts to request encrypted channelJson every 10 seconds 3. Player displays: [Playback Error: Video cannot be played, please contact administrator (1000514-Main Video) + "Video Playback Path"] |
| 1000515 | LIVE_RESTRICT_WATCH_ERROR | Channel has set restrictions | 1. Live restriction API request successful, result indicates user is not allowed to watch the live 2. Player displays: [Playback Error: Video cannot be played, please contact administrator (1000515-Main Video) + "Video Playback Path"] |
| 1000516 | LIVE_RESTRICT_LOAD_ERROR | Failed to request channel restriction info | 1. Live restriction API request failed, usually network-related 2. Player displays: [Playback Error: Data retrieval error 1000516-Main Video) + "Video Playback Path"] |
| 1000517 | LIVE_STATUS_DATA_PARSE_ERROR | Error parsing live status data | 1. Request for live status info successful, but error parsing server response data 2. Player displays: [Playback Error: Data parsing error (1000517-Main Video) + "Video Playback Path"] |
| 1000519 | LIVE_STATUS_LOAD_ERROR | Live status API request exception | 1. Player displays: [Playback Error: Data parsing error (1000519-Main Video) + "Video Playback Path"] |
| 1000520 | LIVE_UNKNOWN_CHANNEL_TYPE | Exception parsing unknown channel type | 1. After successfully requesting live stream status, parses live channel type; throws exception when encountering unknown type. Currently supported types: Three-screen, Video-only, Large Class |
| 1000521 | LIVE_UNKNOWN_LIVE_STATUS | Exception parsing unknown live status | 1. After successfully requesting live stream status, parses live status; throws exception when encountering unknown status. Currently known statuses: Live, STOP, END |
| 1000522 | LIVE_CHANNEL_JSON_PARSE_ERROR | Failed to parse encrypted channel json | 1. Parsing the requested encrypted channel json into plaintext channel json; this error code appears upon failure 2. Player displays: [Playback Error: fail to decrypt channel json (1000522-Main Video) + "Video Playback Path"] |
