Exception in thread "main" com.aliyun.oss.ClientException: mypic2.oss-cn-hangzhou-internal.aliyuncs.com
[ErrorCode]: UnknownHost
[RequestId]: Unknown
at com.aliyun.oss.common.utils.ExceptionFactory.createNetworkException(ExceptionFactory.java:65)
at com.aliyun.oss.common.comm.DefaultServiceClient.sendRequestCore(DefaultServiceClient.java:62)
at com.aliyun.oss.common.comm.ServiceClient.sendRequestImpl(ServiceClient.java:126)
at com.aliyun.oss.common.comm.ServiceClient.sendRequest(ServiceClient.java:72)
at com.aliyun.oss.internal.OSSOperation.send(OSSOperation.java:92)
at com.aliyun.oss.internal.OSSOperation.doOperation(OSSOperation.java:133)
at com.aliyun.oss.internal.OSSOperation.doOperation(OSSOperation.java:111)
at com.aliyun.oss.internal.OSSBucketOperation.listObjects(OSSBucketOperation.java:323)
at com.aliyun.oss.OSSClient.listObjects(OSSClient.java:388)
at com.aliyun.oss.OSSClient.listObjects(OSSClient.java:376)
at UploadPartCopySample.main(UploadPartCopySample.java:55)
Caused by: java.net.UnknownHostException: mypic2.oss-cn-hangzhou-internal.aliyuncs.com
at java.net.InetAddress.getAllByName0(InetAddress.java:1156)
at java.net.InetAddress.getAllByName(InetAddress.java:1082)
at java.net.InetAddress.getAllByName(InetAddress.java:1018)
at org.apache.http.impl.conn.SystemDefaultDnsResolver.resolve(SystemDefaultDnsResolver.java:45)
at org.apache.http.impl.conn.DefaultClientConnectionOperator.resolveHostname(DefaultClientConnectionOperator.java:259)
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:159)
at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:304)
at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:611)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:446)
at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:882)
您好,您这个问题解决了吗?可以请教一下吗?我也遇到了[ErrorCode]: UnknownHost [RequestId]: Unknown这个错误
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。