使用http uploadfile 上传文件报AccessDenied?
同一个接口,同一端代码,
小于 7KB 文件能上传成功 ,
大于7KB抛错,而且为什么不是http status 中返回400或者403,而是要在200的body 中给我返回一个包含错误的XML…
<Error>
<Code>AccessDenied</Code>
<Message>Access Denied.</Message>
<ServerTime>2020-06-11T06:43:11Z</ServerTime>
<Resource>cos.ap-shanghai.myqcloud.com/6465-development-iy5s8-1302174527/imports/pdd99.text</Resource>
<RequestId>NWVlMWQyN2ZfMzk0MzIyMDlfOTJjZF8zNTcxOTEw</RequestId>
<TraceId>OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OTQyYWVlY2QwZTk2MDVmZDQ3MmI2Y2I4ZmI5ZmM4ODFjYjEzMGU3N2I0OTJjYTAwYWExNjJhODI1NTRkOGZlM2Y=</TraceId>
</Error>
偶尔还报
<Error>
<Code>InvalidAccessKeyId</Code>
<Message>The Access Key Id you provided does not exist in our records</Message>
<Resource>cos.ap-shanghai.myqcloud.com/6465-development-iy5s8-1302174527/imports/pdd99.text</Resource>
<RequestId>NWVlMWQyOTJfMTg5ZDA4MDlfOWVhM18yZTgwNzhm</RequestId>
<TraceId>OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OTQyYWVlY2QwZTk2MDVmZDQ3MmI2Y2I4ZmI5ZmM4ODFjZWEzNjIyNDdiZTcyYTgzMzlmMWEwYmU4YjI5MTMyMjk=</TraceId>
</Error>