0002-00000505

Updated at: 2023-07-21 07:18

Problem description

The time parameter in the signed request is invalid.

Causes

The format of the time parameter in the request is invalid and causes an exception in time parsing. The time parameter in the request may be the Date header, x-oss-date header, or x-amz-date header.

Examples

You initiated a request that includes the signature in the Authorization header, but the format of the time parameter in the request is invalid. This can cause an exception in time parsing.

Solutions

Use one of the following methods to add the time parameter to the signed request:

  • The Date header must be in the GMT format. Example: Tue, 20 Dec 2022 08:48:18 GMT.

  • The x-amz-date header must be in the following format: yyyyMMddTHHmmssZ. Example: 20221220T084818Z.

  • The x-oss-date header must be in the ISO8601 format. Example: 20221220T084818Z.

Note

We recommend that you use Alibaba Cloud SDKs to initiate requests. Alibaba Cloud SDKs automatically generate signatures for the requests without the need to manually calculate a signature. For more information, see Overview.

  • On this page (1, T)
  • Problem description
  • Causes
  • Examples
  • Solutions
Feedback