0030-00000003
Updated at:
Problem description
The length of a field value in the bucket policy is greater than 4,095 bytes.
Causes
The length of a field value (usually a field value in the Statement parameter) is greater than 4,095 bytes.
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****************
{
"Version":"2",
"Statement":[
{
"Action":[
"oss:*"
],
"Effect":"Deny",
"Principal":["123456****"],
"Resource":["acs:oss:*:123456****:*/*"]
},
{ ... data longger than 4095 ... }
]
}
The error is returned for the preceding request because the length of a field value in the Statement parameter is greater than 4,095 bytes.
Solutions
Make sure that fields in the request do not exceed the length limit and try again.
References
Is this page helpful?