开发者社区> 问答> 正文

internal.aliyuncs.com

已解决

展开
收起
2018-04-24 01:21:20 2045 0
1 条回答
写回答
取消 提交回答
  • 采纳回答

    详细解答可以参考官方帮助文档

    报错:Connection to http://buname.oss-cn-hangzhou-internal.aliyuncs.com refused

    [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.OSSObjectOperation.putObject(OSSObjectOperation.java:92)

             at com.aliyun.oss.OSSClient.putObject(OSSClient.java:394)

             at osscs1.OSSPutObjectSample.uploadFile(OSSPutObjectSample.java:82)

             at osscs1.OSSPutObjectSample.main(OSSPutObjectSample.java:46)

    解决方法:

    private static final String OSS_ENDPOINT = "http:// oss-cn-hangzhou.aliyuncs.com/";

    OSSClient client = new OSSClient(OSS_ENDPOINT,ACCESS_ID, ACCESS_KEY);

     

     

    如果问题还未能解决,请联系售后技术支持


    2018-04-27 23:05:42
    赞同 展开评论 打赏
问答地址:
问答排行榜
最热
最新

相关电子书

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