使用OSS上传文件时,会报错
com.aliyun.oss.ClientException: UnknownHost,但我又两个服务器都用到了同样的oss配置,其中一个是死活不行,一直报错
com.aliyun.oss.ClientException: UnknownHost
2019/1/5 上午9:54:39 at com.aliyun.oss.common.utils.ExceptionFactory.createNetworkException(ExceptionFactory.java:71) ~[aliyun-sdk-oss-3.1.0.jar!/:na]
2019/1/5 上午9:54:39 at com.aliyun.oss.common.comm.DefaultServiceClient.sendRequestCore(DefaultServiceClient.java:127) ~[aliyun-sdk-oss-3.1.0.jar!/:na]
2019/1/5 上午9:54:39 at com.aliyun.oss.common.comm.ServiceClient.sendRequestImpl(ServiceClient.java:133) ~[aliyun-sdk-oss-3.1.0.jar!/:na]
2019/1/5 上午9:54:39 at com.aliyun.oss.common.comm.ServiceClient.sendRequest(ServiceClient.java:70) ~[aliyun-sdk-oss-3.1.0.jar!/:na]