文档

0003-00001403

更新时间:

问题描述

请求所用的Endpoint有误。

问题原因

您访问目标Bucket时所用的域名不正确,访问的Endpoint与目标Bucket所在地域不一致。

问题示例

例如,您的Bucket位于北京地域,其Endpoint为example-bucket.oss-cn-beijing.aliyuncs.com,但构造了杭州地域的Endpoint进行访问,访问的Endpoint为example-bucket.oss-cn-hangzhou.aliyuncs.com。访问的Endpoint和实际的Endpoint不一致,返回以下报错:

<?xml version="1.0" encoding="UTF-8"?>
<Error>
  <Code>AccessDenied</Code>
  <Message>The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.</Message>
  <RequestId>63F5DC133218A13939CD2940</RequestId>
  <HostId>example-bucket.oss-cn-beijing.aliyuncs.com</HostId>
  <Bucket>example-bucket</Bucket>
  <Endpoint>oss-cn-hangzhou.aliyuncs.com</Endpoint>
  <EC>0003-00001403</EC>
</Error>

解决方案

使用目标Bucket地域对应的Endpoint进行访问。通过以下任意一种方法获取Endpoint:

  • 通过返回的字段

  • 通过控制台概览页面

    1. 登录OSS管理控制台

    2. 单击Bucket列表,然后单击目标Bucket名称。

    3. 在左侧导航栏,单击概览

    4. 访问端口区域,查看Bucket的Endpoint和Bucket域名。

相关文档

  • 本页导读 (1)
文档反馈