All Products
Search
Document Center

Object Storage Service:0002-00000410

Last Updated:Mar 27, 2025

Problem description

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

Causes

You initiated a request that uses an Amazon S3-compatible V4 signature. However, the X-Amz-Algorithm field that specifies the signature algorithm in the request is missing.

Examples

You initiated a request that uses an Amazon S3-compatible V4 signature. However, the X-Amz-Algorithm field in the request is missing.

GET /test.txt?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

Solutions

Make sure that the URL parameter contains the following required fields: X-Amz-Algorithm, X-Amz-Credential, X-Amz-Signature, X-Amz-Date, X-Amz-SignedHeaders, and X-Amz-Expires. The following sample code provides an example on how to specify these fields:

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.