Problem
When uploading or downloading objects through Object Storage Service (OSS), the following error is returned:
OSS Transfer Acceleration is not configured on this bucketCause
This error occurs when a request uses a transfer acceleration endpoint (oss-accelerate.aliyuncs.com or oss-accelerate-overseas.aliyuncs.com), but the target bucket either:
Does not have transfer acceleration enabled
Has transfer acceleration enabled but is configured with the wrong endpoint
Solution
Check whether transfer acceleration is enabled on your bucket, then apply the corresponding fix.
If transfer acceleration is enabled
Verify that your application uses the correct acceleration endpoint:
| Endpoint | Domain | Coverage |
|---|---|---|
| Global | oss-accelerate.aliyuncs.com | Acceleration access points worldwide, for buckets in all regions |
| Outside the Chinese mainland | oss-accelerate-overseas.aliyuncs.com | Acceleration access points outside the Chinese mainland, including China (Hong Kong) |
Do not prepend the bucket name to the acceleration endpoint. Use oss-accelerate.aliyuncs.com as the endpoint value, not <bucket-name>.oss-accelerate.aliyuncs.com. The SDK or tool handles the bucket name separately.
If your current endpoint is a standard regional endpoint (such as oss-cn-hangzhou.aliyuncs.com), replace it with the appropriate acceleration endpoint.
If transfer acceleration is not enabled
Choose one of the following options:
Enable transfer acceleration: Follow the steps in Enable transfer acceleration. After enabling, the feature takes effect within 30 minutes.
Switch to a standard endpoint: If transfer acceleration is not needed, replace the acceleration endpoint in your configuration with the standard regional endpoint for your bucket. For example, replace
oss-accelerate.aliyuncs.comwithoss-cn-hangzhou.aliyuncs.com.