0002-00000505

更新时间:
复制 MD 格式

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:

HeaderRequired formatExample
DateGMTTue, 20 Dec 2022 08:48:18 GMT
x-amz-dateyyyyMMddTHHmmssZ20221220T084818Z
x-oss-dateISO 860120221220T084818Z
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.