0010-00000217

更新时间:
复制 MD 格式

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: az, AZ

  • Digits: 09

  • Space:

  • Special characters: +, -, =, ., _, :, /

Tag keys and values are case-sensitive.

Length limits

FieldMaximum length
Tag key128 characters
Tag value256 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.

References