Error codes

更新时间:
复制 MD 格式

This topic describes common error codes for Real-Time Communication (RTC) and their solutions.

Client error codes

HexadecimalDecimalFault DescriptionCausesSolution
0x0103010116974081Invalid parameterInvalid parameter. A field in AuthInfo is empty, or the timestamp is less than or equal to 0.Check that all fields in AuthInfo are complete.
0x0103020416974340The operation is rejected in the current stateAn internal SDK state error occurred.Destroy the SDK instance and create a new one.
0x0103030416974596The stream to be published does not exist.The local stream (video, screen, or audio) does not exist.Call the publish method to ingest the stream again.
  • 0x01030305
  • 0x01030308
  • 16974597
  • 16974600
An error occurred with the stream to be published.An error occurred with the local stream (video, screen, or audio).Call the publish method to ingest the stream again.
0x0103040316974851The stream to be subscribed to does not exist.The remote stream (video, screen, or audio) does not exist.Confirm whether the remote user has stopped stream ingest.
  • 0x01030404
  • 0x01030405
  • 16974852
  • 16974853
An error occurred with the stream to be subscribed to.An error occurred with the remote stream (video, screen, or audio).Confirm whether the remote user has stopped stream ingest.
  • 0x01010103
  • 0x0101010C
  • 0x0101010D
  • 16843011
  • 16843020
  • 16843021
SDK initialization error.An exception occurred during SDK initialization.Check whether the SDK version is correct and whether any JAR packages are missing.
0x0102020416908804Join timeoutThe request to join the channel timed out.Check the network connectivity.
0x0102020C16908812Signaling heartbeat timeout.The heartbeat packet timed out.Check the network connectivity.
0x0102040116909313Signaling request error.An error occurred with the signaling request.Check the network connectivity.
  • 0x01020210
  • 0x01020211
  • 0x01020212
  • 0x01020213
  • 0x01020214
  • 0x01020215
  • 0x01020216
  • 0x01020217
  • 0x01020218
  • 16908816
  • 16908817
  • 16908818
  • 16908819
  • 16908820
  • 16908821
  • 16908822
  • 16908823
  • 16908824
Signaling request timeout.The signaling request timed out.Check the network connectivity.
0x0201020133620481The AppId does not exist.AppId does not exist.Create an application in the console.
0x0201020233620482The AppId is invalid.The application has been disabled.Enable the application in the console.
0x0201020333620483The channel is invalid.Failed to join the channel because the channel has expired. A channel is valid for 48 hours.Generate a new channel authentication token.
0x0201020533620485The token is invalid.Failed to join the channel because the token is invalid.Generate a new channel authentication token.
0x0201040133620993Stream ingest was aborted.The stream ingest was interrupted.Call the publish method to ingest the stream again.
0x0201040233620994Stream subscription was aborted.The stream subscription was interrupted.Confirm whether the remote user has stopped stream ingest.
0x0201040333620995Failed to subscribe to the remote streamFailed to subscribe to the remote stream because it is no longer being published.None.
0x0104040417040388Failed to open the audio recording device, or the audio device is occupiedThe capture device failed to initialize, the media service for the capture device is abnormal, or the audio device is in use.On macOS and Windows, check whether the energy bar for the audio device is active in System Settings. On iOS and Android, confirm whether the device is in use by another application. If everything is normal, restart the device.
0x0104040517040389Failed to open the audio playback device, or the audio device is occupiedThe playback device failed to initialize, the media service for the playback device is abnormal, or the audio device is in use.On macOS and Windows, check whether the energy bar for the audio device is active in System Settings. On iOS and Android, confirm whether the device is in use by another application. If everything is normal, restart the device.
0x0104040617040390Audio recording error, or the audio device is occupiedInsufficient system performance, the media service for the capture device is abnormal, or the audio device is in use.Restart the application or the device.
0x0104040717040391Audio playback error, or the audio device is occupiedInsufficient system performance, the media service for the playback device is abnormal, or the audio device is in use.Restart the application or the device.
0x0104040817040392No audio recording permissionNo microphone permission.Go to System Settings to grant microphone permission, and then join the channel again.
0x0104040917040393No audio recording device foundThe microphone device is abnormal.Check whether an active microphone is connected. Then, check whether the device is disabled in System Settings.
0x0104041017040400No audio playback device foundThe playback device is abnormal.Check whether an active speaker or headset is connected. Then, check whether the device is disabled in System Settings.
0x0104010417039620Failed to open the camera due to no permission, or the camera is occupiedFailed to open the camera. The camera is unavailable or may be in use.Check whether the system camera is available. On a mobile device, check whether another app is using the camera.
0x01040106 17039622An error occurred during camera capture.The camera is not working correctly. For example, on a macOS or Windows computer, the camera capture light turns off and the device is forcibly interrupted.Join the channel again or restart the app.
0x01040201 17039873Failed to open the rendering deviceFailed to start video rendering.On Windows, check whether the graphics card driver needs to be upgraded. On mobile devices, check whether the phone model, Android tablet, or other peripheral supports OpenGL.
0x01040202 17039874An error occurred during rendering.An exception occurred during video rendering. A system error caused the rendering engine to fail.Join the channel again or restart the app.
0x0105020117105409Failed to create a media connectionFailed to establish a media channel.Check the network connectivity.
0x0105020217105410Failed to reconnect the media connectionFailed to reconnect to the media channel.Check the network connectivity.
0x0106010117170689Low performance detected.Poor performance is detected.Turn off CPU-intensive processes, such as retouching or video stream ingest.
0x0106010217170690Performance restoredPerformance has recovered, and the application is running normally.None.
0x0201010533620229Session has been removedThe session has been removed.Destroy the instance, create a new one, and then join the channel.
0x0201012133620257H5 is not compatibleThe client is not compatible because H5 compatibility mode is not enabled correctly.Check whether H5 compatibility mode is enabled correctly.
0x0201090333622275Failed to join the channel due to an invalid channel profileFailed to join the channel.Verify that the user's join mode is consistent with the channel mode.
0x0101030216843522Failed to leave the channel because the user has already left.ERROR_ROOM_LEAVING_NOW. The user was already leaving the channel when the API to leave the channel was called.Wait for the session closing task to complete before you perform other operations.
0X0101030416843524Operation failed because the user is not in the channel.ERROR_ROOM_NOT_IN_THE_CHANNEL. The user is not in the channel.Join the channel before you perform operations related to stream ingest or stream pulling.
  • 0x01010401
  • 0x01010404
  • 16843777
  • 16843780
Failed to publish because a stream is already being published.The user was already ingesting a stream when the stream ingest API was called.Do not call the publish method repeatedly. You can also stop the current stream ingest before you call the publish method.
0x0101040216843778Operation failed because no stream is being published.ERROR_PUBLISH_NOT_PUBLISHER. The user was not ingesting a stream when the API to stop stream ingest was called.Do not call the API to stop stream ingest repeatedly.
0x0101040516843781The publish configuration is invalid.ERROR_PUBLISH_CONFIG_IS_INVALID. The publish configuration is incorrect.Check the publish configuration.
0x0101050116844033The subscribe configuration is invalid.ERROR_SUBSCRIBE_CONFIG_IS_INVALID. The subscribe configuration is incorrect.Check the subscribe configuration.
0x0102011016908560Failed to update roleSOPHON_RESULT_UPDATE_ROLE_ERROR. Failed to update the role.Confirm the current channelProfile (channel type). If the mode is Communication, you do not need to set the ClientRole (role type). The role can be updated only when stream ingest is stopped.
  • 0x01020201
  • 0x01020202
  • 0x01020203
  • 0x01020205
  • 0x01020206
  • 0x01020207
  • 0x01020208
  • 0x01020209
  • 0x0102020A
  • 0x0102020B
  • 0x0102020D
  • 0x0102020E
  • 0x0102020F
  • 0x01020219
  • 0x01020220
  • 0x01020221
  • 0x01020222
  • 16908801
  • 16908802
  • 16908803
  • 16908805
  • 16908806
  • 16908807
  • 16908808
  • 16908809
  • 16908810
  • 16908811
  • 16908813
  • 16908814
  • 16908815
  • 16908825
  • 16908832
  • 16908833
  • 16908834
Signaling request timeout.The signaling request timed out.Check the network connectivity.
0x00000101257Weak network.SDK_WARNING_NETWORK_WEAK. The network quality is poor.Check the network connectivity.
0x00000102258Network recovered.SDK_WARNING_NETWORK_RECOVERY. The network has recovered.None.
0x00000103259Network disconnected.SDK_WARNING_LOCAL_NETWORK_DISCONNECT. The local network is disconnected.Check the network connectivity.
0x00000104260Remote network disconnected.SDK_WARNING_REMOTE_NETWORK_DISCONNECT. The remote user's network is disconnected.None.
0x00000105261Local network connected.SDK_WARNING_LOCAL_NETWORK_CONNECT. The local network connection has been restored.None.
0x00000106262Remote network connected.SDK_WARNING_REMOTE_NETWORK_CONNECT. The remote user's network connection has been restored.None.
0x0107010117236225External audio input buffer is fullSDK_AUDIO_INPUT_BUFFER_FULL. During external audio input, the input frequency is too high, which causes the buffer to become full.Reduce the external input frequency. Set a wait time of 20 ms and ensure that a single input does not contain more than 40 ms of data.
0x0103030d16974605Failed to publish due to the wrong roleSDK_RESULT_PUBLISH_WRONG_ROLE_ERROR. A user with the viewer role cannot publish a stream.Check the role of the current user.
0x0109000317367043Failed to open the media fileFailed to open the file.Check whether the file path is correct and whether the file has read permission.
0xFFFFFFFF-1WARN_DEFAULTDefault alert information.None.
0x0201010133620225Session SubscribeThe client failed to subscribe to the remote user. This may be because the remote user has not started or has stopped stream ingest.Ensure that the subscribe API is called while the remote user is ingesting a stream.

Error codes for joining a channel

HexadecimalDecimalFault DescriptionCausesSolution
0x0101030116843521Already joined.The user has already joined the channel.Check the API call logic.
0x0201090333622275Failed to join the channel due to an invalid channel profileThe channel profile does not match. For example, this error occurs if the first user joins in communication mode and a subsequent user tries to join in interactive mode.Check whether the user's channel mode is the same as that of other users.
0x0504000284148226Channel overdue
  • The account has an overdue payment.
  • The token has expired. You can check the expiration using the timestamp parameter.
  • The AppId and AppKey are incorrect or do not match. Each AppId has a unique AppKey.
  • The authentication parameters are incorrect.
Check the following:
  • Confirm that the account has a sufficient balance.
  • Confirm whether the token has expired. You can check this by converting the timestamp parameter to UTC+8. In some cases, the timestamp is the expiration time. In other cases, the expiration time is the timestamp plus 48 hours.
  • The AppId and AppKey do not match. Each AppId has a unique AppKey.
  • Confirm that the authentication parameters are correct.
0x0201070233621762Failed to join the channel because the same user is trying to join again. Check whether another device is still in the channel.The user failed to join the channel. For example, the same user is trying to join the same channel from two different devices, or the user's previous session has not completely ended.Check the API call logic.
0x0201010433620228Session JoinThe client left the channel and then tried to join again using the same session ID.Join the channel again.
0x0201020433620484The channel does not exist.Failed to join the channel because it does not exist. For example, the channel creator joined and then quickly left. When a second user tried to join, the channel no longer existed.Join the channel again.
0x0501001183951633Failed to join the channel due to an invalid channel ID.The channel ID in the Global Server Load Balancing (GSLB) request is invalid. For example, the channel ID cannot contain spaces.Check the format of the channel ID.

A channel ID can be 1 to 64 characters in length and can contain uppercase letters, lowercase letters, digits, underscores (_), and hyphens (-).

0x0501001283951634Failed to join the channel due to an invalid user ID.The user ID in the GSLB request is invalid.Join the channel again.
0x0501001a83951642Failed to join the channel due to an invalid channel IDThe AppId is configured for large-scale channel mode. You must use a package of version 1.16.5 or later to join the channel. Otherwise, the join attempt will fail.Check the SDK version.
0x0102020116908801Signaling request timeout.A response to the GSLB request was not received in time, which caused a timeout.Check the network connectivity.
0x0102020416908804Join timeoutA response to the join request was not received in time, which caused a timeout.Check the network connectivity.
0x0103020216974338Join errorAn error occurred while joining the channel.Check whether the authentication information is correct and whether the network environment is normal.
0x0103020116974337GSLB error.The gslb field in the AuthInfo parameter is incorrect.Check whether the gslb field in AuthInfo is complete, or verify that AuthInfo can pass validation.

Bypass live streaming error codes

HexadecimalDecimalDescriptionCausesSolution
0x0110000117825793MPU task not foundA URL was not passed for the MPU task, or an attempt was made to stop a task that had already been stopped.Check the URL passed when you update or stop the MPU task. Check whether you are trying to stop a task that is already stopped.
0x0110000217825794The MPU task already exists.An attempt was made to start an MPU task that had already been started.Check whether you are trying to start an MPU task that is already started.
0x0110000317825795Invalid MPU task parameter.An invalid parameter was passed.Check whether the passed parameter is valid or within the valid range.
0x0110000417825796MPU task internal error.An internal SDK error occurred. This includes, but is not limited to, network errors and server-side errors.Send the request again.
0x0110000517825797MPU task Real-Time Messaging Protocol (RTMP) server error.The server-side RTMP service failed to initialize, or a resource failed to download.Check the validity of the resource link in the MPU task.
0x0110000617825798MPU task RTMP stream error.An error occurred with the server-side RTMP stream.Check whether the format of the RTMP stream URL is correct and valid.
0x0110000717825799MPU task publish timeout.The server-side stream ingest timed out.Send the request again.

Cross-channel stream ingest error codes

HexadecimalDecimalDescriptionCause AnalysisSolution
0x0120000118874369Channel relay state error.The user has not joined the channel, the role is incorrect, or the channel mode is incorrect.Check the join status. Ensure that the current mode is interactive and that the role is streamer.
0x0120000218874370The specified channel relay source is not permitted.The channel mode is incorrect for cross-channel stream ingest.Switch to interactive mode or low-latency interactive stream mode.
0x0120000318874371Failed to join the destination channel for relay.During cross-channel stream ingest, the destination channel does not exist, or the destination channel and the source channel are not in the same channel mode.When you ingest a stream across channels, check whether the destination channel exists. Ensure that the destination channel and the source channel are in the same mode, such as interactive mode.
0x0120000518874373Channel relay role error.The role is incorrect for cross-channel stream ingest.Switch the role to streamer.
0x0120000618874374Channel relay invalid parameter.The passed parameter is invalid.Check whether the passed parameter is valid or within the valid range.
0x0120000718874375Channel relay to self error.The destination channel ID is the same as the source channel ID.Enter the correct destination channel ID. The destination channel ID cannot be the same as the source channel ID.

Cross-channel stream pulling error codes

HexadecimalDecimalDescriptionCauseSolution
0x0130000119922945Channel relay subscription request error.A parameter in the request contains an invalid character or has an invalid format.Check the format and validity of the request parameters.
0x0130000219922946Channel relay subscription request timeout. The cross-channel stream pulling request timed out.Try to send the request again.
0x0130000319922947Channel Relay: Sub-server TimeoutThe destination channel was not created within the specified time, which caused a timeout.Ensure that the destination channel has been created. Try to send the request again.