开发者社区 问答 正文

访问oss资源或者使用sdk时提示“ using the specified endpoint”

已解决

展开
收起
游客jxj4maxzhqjhi 2018-02-17 19:39:36 1097 分享 版权
1 条回答
写回答
取消 提交回答
  • 用户已注销
    采纳回答

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


    如果在访问oss资源或者使用sdk时如果遇到提示:
    The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint. 

    说明设置的endpoint与bucket所在的区域不一致。

    如果没有设置endpoint,默认会访问到杭州区域,bucket放在其他区域会导致这个错误。如果设置了endpoint,请检查下是否与bucket所在区域一致。

    endpoint地址设置请参考https://help.aliyun.com/document_detail/oss/user_guide/endpoint_region.html?spm=5176.product8314910_oss.6.91.WfYmcV

    另外在sdk中一般需要添加http:// 或者https://协议信息。


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

    2018-02-23 05:44:33
    赞同 展开评论