oss使用csdk上传大文件出错
Reoss使用csdk上传大文件出错
捕获到异常
Unhandled Exception: System.Net.WebException: The request was aborted: The reque
st was canceled. ---> System.IO.IOException: Cannot close stream until all bytes
are written.
at System.Net.ConnectStream.CloseInternal(Boolean internalCall, Boolean abort
ing)
--- End of inner exception stack trace ---
at Aliyun.OpenServices.Common.Communication.RetryableServiceClient.SendImpl(S
erviceRequest request, ExecutionContext context, Int32 retries)
at Aliyun.OpenServices.Common.Communication.RetryableServiceClient.Send(Servi
ceRequest request, ExecutionContext context)
at Aliyun.OpenServices.OpenStorageService.Commands.OssCommand.Execute()
at Aliyun.OpenServices.OpenStorageService.Commands.OssCommand`1.Execute()
at Aliyun.OpenServices.OpenStorageService.OssClient.PutObject(String bucketNa
me, String key, Stream content, ObjectMetadata metadata)
奇怪的是我使用fiddler监视请求时 却上传成功 而且速度很快 所以我想可能跟本地代理有关系 是不是不用代理时请求超时的原因 还希望有朋友帮帮忙啊
赞0
踩0