Problem description
The time parameter in the signed request is in an invalid format.
Causes
OSS cannot parse the time parameter in the request because the format is invalid. The time parameter can appear in any of the following headers: Date, x-oss-date, or x-amz-date.
Examples
You sent a request with the signature in the Authorization header, but the time parameter in the request is in an invalid format, which causes a time-parsing error.
Solutions
Set the time header to the correct format based on which header your request uses:
| Header | Required format | Example |
|---|---|---|
Date | GMT | Tue, 20 Dec 2022 08:48:18 GMT |
x-amz-date | yyyyMMddTHHmmssZ | 20221220T084818Z |
x-oss-date | ISO 8601 | 20221220T084818Z |
To avoid constructing signatures manually, use Alibaba Cloud SDKs. SDKs automatically generate signatures for the requests without the need to manually calculate a signature. For more information, see Overview.
该文章对您有帮助吗?