0017-00000902
Updated at:
Problem description
OSS returns an InvalidRequest error when a GET request includes the response-content-type query parameter.
Causes
For security reasons, OSS does not allow overriding the Content-Type response header via the response-content-type query parameter in GET requests.
Examples
<Error>
<Code>InvalidRequest</Code>
<Message>Can not override response header on content-type</Message>
<RequestId>6785CFFA2C1E9334398DCEEB</RequestId>
<HostId>Bucket.oss-cn-hangzhou.aliyuncs.com</HostId>
<EC>0017-00000902</EC>
<RecommendDoc>https://api.aliyun.com/troubleshoot?q=0017-00000902</RecommendDoc>
</Error>Solutions
Remove response-content-type from the GET request.
References
For more information, see GetObject.
Is this page helpful?