OSS returns HTTP status code 416 (Range Not Satisfiable) when it cannot fulfill the byte range specified in a GetObject request.
InvalidRange
Error message: The requested range cannot be satisfied
Cause
The Range header specified in the request to download part of a large object is invalid. Common causes:
Multiple ranges are specified (OSS does not support multi-range requests)
Solution
Specify a single, valid byte range. Valid values range from 0 to object size - 1.
Valid `Range` header formats (using a 2,000-byte object as an example):
| Range header | Bytes returned | Description |
|---|---|---|
Range: bytes=0-499 | Bytes 1–500 | First 500 bytes |
Range: bytes=-500 | Bytes 1501–2000 | Last 500 bytes |
Range: bytes=500- | Bytes 501–2000 | From byte 501 to end |
Range: bytes=0- | Bytes 1–2000 | Entire object |
OSS does not support multi-range requests. Specify only one range per GetObject request.