This topic lists common errors that may occur when you use SDKs.

ErrCode:SDK.ServerUnreachable

When you use SDKs, the following errors may occur:
ErrCode:SDK.ServerUnreachable
ErrMsg:SocketTimeoutException has occurred on a socket read or accept.
You can extend the timeout period (unit: ms) to solve these problems.
  • The Python sample code is as follows:
    request.set_connect_timeout(10000)
    request.set_read_timeout(10000)
  • The Java sample code is as follows:
    request.setConnectTimeout(10000);
    request.setReadTimeout(10000);