Skip to main content

You are viewing Agora Docs forBetaproducts and features. Switch to Docs

Android
iOS
macOS
Web
Linux C++
Unity

Troubleshooting

To troubleshoot issues you encounter during development, take the following steps:

Enable local logging

In the development or testing phase, you may need the SDK to output more detailed information to help locate and fix issues. Enable log output and set the log level by setting RtmConfig to RtmLogConfig when initializing the Signaling client instance. The SDK outputs the log information in the browser console.


_11
RtmConfig rtmConfig = new RtmConfig();
_11
_11
rtmConfig.userId = "your_userid";
_11
rtmConfig.appId = "your_appid";
_11
_11
RtmLogConfig logConfig = new RtmLogConfig();
_11
logConfig.level = RtmLogLevel.INFO;
_11
logConfig.filePath = "your_path";
_11
logConfig.fileSizeInKB = 10*1024;
_11
_11
rtmConfig.logConfig = logConfig;

You can set the logLevel to INFO, WARN, ERROR, FATAL, or NONE. The INFO level outputs the most detailed log information, while NONE does not output any log information.

info

When your application goes live, set the log information level to INFO.

Error codes reference table

When calling the RTM Java API, if an error occurs, the SDK will execute the onFailure method and return an errorInfo of type ErrorInfo:

PropertyTypeDescription
errorCodeRtmErrorCodeThe error code for this operation.
reasonStringThe reason for the error.
operationStringThe type of operation.

The errorCode and reason properties report the error code and description, respectively. Refer to the error codes table to get more information about the error.

Contact Us

If the above measures do not resolve your issue or if you need support with solutions, please contact support@agora.io.

Signaling