Problem description
The request contains an object tag with an invalid value. OSS rejects the request because the tag does not meet character requirements.
Causes
One or more of the following conditions triggered this error:
The tag value contains characters that OSS does not allow.
The tag key exceeds 128 characters, or the tag value exceeds 256 characters.
The object already has 10 tags, or the request contains duplicate tag keys.
Examples
None
Solutions
Check your request against the following tag requirements and correct any invalid tags.
Allowed characters
Tag keys and values can contain only the following characters:
Letters:
a–z,A–ZDigits:
0–9Space:
Special characters:
+,-,=,.,_,:,/
Tag keys and values are case-sensitive.
Length limits
| Field | Maximum length |
|---|---|
| Tag key | 128 characters |
| Tag value | 256 characters |
Tag count
An object can have at most 10 tags.
Each tag key must be unique within the same object.
URL encoding for HTTP request headers
If you set tags in an HTTP request header, URL-encode both the tag key and the tag value.