开发者社区> 问答> 正文

连接阿里云的时候80timeout


    com.aliyun.oss.ClientException: [ErrorCode]: ConnectionTimeout
    [ErrorMessage]: Connect to media-gzzd.oss-cn-shenzhen.aliyuncs.com:80 timed out     这是报的错误

展开
收起
黄程序猿 2015-07-17 09:24:32 9185 0
2 条回答
写回答
取消 提交回答
  • 妳是在測多片上傳嗎,把每片尺寸配置小點

    -------------------------

    试一下传成功一个文件后,关掉socket再打开 ;

    2015-07-18 06:39:55
    赞同 展开评论 打赏
  • Re连接阿里云的时候80timeout
    补充错误:[RequestId]: Unknown
        at com.aliyun.oss.common.utils.ExceptionFactory.createNetworkException(ExceptionFactory.java:31)
        at com.aliyun.oss.common.comm.DefaultServiceClient.sendRequestCore(DefaultServiceClient.java:57)
        at com.aliyun.oss.common.comm.ServiceClient.sendRequestImpl(ServiceClient.java:191)
        at com.aliyun.oss.common.comm.ServiceClient.sendRequest(ServiceClient.java:151)
        at com.aliyun.oss.internal.OSSOperation.send(OSSOperation.java:71)
        at com.aliyun.oss.internal.OSSOperation.send(OSSOperation.java:65)
        at com.aliyun.oss.internal.OSSMultipartOperation.uploadPart(OSSMultipartOperation.java:353)
        at com.aliyun.oss.OSSClient.uploadPart(OSSClient.java:730)
        at com.businessrs.client.MutiUpload$UploadPartThread.run(MutiUpload.java:203)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:724)
    Caused by: org.apache.http.conn.ConnectTimeoutException: Connect to goldmsg-ovcs.oss-cn-shenzhen.aliyuncs.com:80 timed out
        at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:125)
        at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:148)
        at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:150)
        at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:121)
        at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:575)
        at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:425)
        at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
        at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754)
        at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:732)
        at com.aliyun.oss.common.comm.DefaultServiceClient.sendRequestCore(DefaultServiceClient.java:55)

    -------------------------

    回2楼robertzh的帖子
    我是在用分块上传,每块是5M的大小,程序jar包在linux运行,从数据库中提取map集合的文件数据,然后遍历,使用ExecutorService把多个文件数据,发送到上传的线程中去,然后上传到阿里云去,一开始能传,传成功一两个文件之后,就出现 connect to time out 或者 connect to refused 的错误
    2015-07-17 09:27:54
    赞同 展开评论 打赏
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载