tencentyun / qcloud-sdk-dotnet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AppendObjectRequest数组重载,调用出现错误。

genmesce opened this issue · comments

使用追加上传对象功能时,
使用AppendObjectRequest(string bucket, string key, string srcPath, long appendPosition) 操作,执行成功。
使用AppendObjectRequest(string bucket, string key, byte[] data, long appendPosition)重载进行操作,出现异常。

// 调用
AppendObjectRequest request = new AppendObjectRequest(bucket, cosPath, new byte[] { 1, 2, 3 }, next_append_position);
...
AppendObjectResult result = cosXml.AppendObject(request);

异常内容:

(statusCode = 400, statusMessage = Bad Request, errorCode = InvalidArgument, errorMessage = Invalid Argument, requestId = , traceId =  ,resouce =

已发布v5.4.29修复,辛苦再试试~