All Products
Search
Document Center

Object Storage Service:0017-00000235

Last Updated:Mar 20, 2026

Problem description

The InvalidArgument error is returned when the value of the encoding-type parameter in a request is invalid.

Causes

The encoding-type parameter in the request parameters or request headers contains an unsupported value. Valid values are url, url2, and base64.

Examples

Sample request with an invalid encoding-type value (urlencode):

https://junchengtest.oss-cn-chengdu.aliyuncs.com/5e268a36-1805e55ecba.mp4?uploads
Authorization:OSS LTAI****************:PCX5************************
Date:Fri, 10 Feb 2023 03:52:53 GMT
encoding-type:urlencode

Sample error response:

<Error>
    <Code>InvalidArgument</Code>
    <Message>Invalid Encoding Method specified in Request</Message>
    <RequestId>63E5C184D9A9023037C50687</RequestId>
    <HostId>junchengtest.oss-cn-chengdu.aliyuncs.com</HostId>
    <ArgumentName>encoding-type</ArgumentName>
    <ArgumentValue>urlencode</ArgumentValue>
</Error>

Solutions

Set encoding-type to one of the following valid values when using multipart upload: url, url2, or base64.

References