Problem description
The x-oss-credential field in a PostObject request contains an invalid value.
Causes
The PostObject request uses V4 signature, but the x-oss-credential field value does not follow the required format.
Examples
The value of the x-oss-credential field in the request does not end with aliyun_v4_request.
Solutions
Set x-oss-credential to the following format:
<YOUR-AKID>/YYYYMMDD/REGION/SERVICE/aliyun_v4_requestThe aliyun_v4_request string is required and must be the final segment.Replace the placeholders as follows:
| Placeholder | Description | Example |
|---|---|---|
<YOUR-AKID> | Your AccessKey ID | LTAI5tXxx |
YYYYMMDD | The signing date | 20240315 |
REGION | The OSS region ID | cn-hangzhou |
SERVICE | The service identifier | oss |
For the complete PostObject request specification, see PostObject.