0002-00000419

Updated at: 2025-03-27 07:39

Problem description

The X-Amz-SignedHeaders field is missing in the request.

Causes

You initiated a request that used the Amazon S3-compatible V4 signature. However, the request did not include the X-Amz-SignedHeaders field.

Examples

The following code provides an example of a URL-based request that uses the S3-compatible V4 signature, However, the request does not include the X-Amz-SignedHeaders field.

GET /test.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=LTAI****************/20221220/us-east-1/s3/aws4_request&X-Amz-Date=20221220T084818Z&X-Amz-Expires=86400&X-Amz-Signature=ab2***st HTTP/1.0
Date: Tue, 20 Dec 2022 08:48:18 GMT
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
x-oss-s3-compat: true

The X-Amz-SignedHeaders field specifies the header of a signature request.

Solutions

Add the X-Amz-SignedHeaders field to the URL-based request. Make sure that the URL-based request is complete and all fields of the request are correctly configured. The following code provides an example of a complete URL-based request whose fields are correctly configured.

GET /test.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=LTAI****************/20221220/us-east-1/s3/aws4_request&X-Amz-Date=20221220T084818Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-Amz-Signature=ab2s**** HTTP/1.0
Date: Tue, 20 Dec 2022 08:48:18 GMT
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
x-oss-s3-compat: true

We recommend that you use Amazon S3 SDKs to initiate the request. For more information, see Use Amazon S3 SDKs to access OSS.

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

Chat now with Alibaba Cloud Customer Service to assist you in finding the right products and services to meet your needs.

alicare alicarealicarealicare