All Products
Search
Document Center

Object Storage Service:0003-00001403

Last Updated:Jul 21, 2023

Problem description

The endpoint used by the request is invalid.

Causes

The endpoint that you use to access the destination bucket is invalid. The region of the endpoint is different from the region in which the destination bucket is located.

Examples

If your bucket is located in the China (Beijing) region, the valid endpoint is example-bucket.oss-cn-beijing.aliyuncs.com. However, you use the example-bucket.oss-cn-hangzhou.aliyuncs.com endpoint of the China (Hangzhou) region to access the bucket. The endpoint that is used by the request is not the valid endpoint. The following error is returned:

<?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>

Solutions

Use the endpoint of the region in which the bucket is located to access the bucket. Use one of the following methods to obtain the endpoint:

  • Obtain the endpoint from the response

  • Obtain the endpoint from the Overview page in the Object Storage Service (OSS) console

    1. Log on to the OSS console.

    2. In the left-side navigation pane, click Buckets. On the Buckets page, click the name of the bucket that you want to access.

    3. In the left-side navigation tree, click Overview.

    4. In the Port section, obtain the endpoint and domain name of the bucket.

References