0030-00000004

Updated at:

Problem description

The content of the bucket policy is not encoded in UTF-8.

Causes

The content of the bucket policy must be encoded in UTF-8.

Examples

For example, you initiate the following request:

PUT /?policy
Content-Length: 230
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Thu, 21 Feb 2019 12:51:09 GMT
Authorization: OSS qn6q**************:77Dv****************
Policy written with Non-UTF-8 encoding format

The error is returned for the preceding request because the content of the bucket policy is not encoded in UTF-8.

Solutions

Encode the content of the bucket policy in UTF-8.

References

Overview