tencentyun / qcloud-sdk-dotnet

MIT License
46 stars 22 forks source link

errorcode is null #35

Closed wgy855 closed 1 year ago

wgy855 commented 1 year ago

When I tried "DoesBucketExistRequest" with wrong accessKey intentionally, the CosServerException catched has a null errorcode, which makes this exception meaningless.
image

But the "GetServiceRequest" works fine. image

wgy855 commented 1 year ago

According to support team's reply, this problem can be solved by manully changing the method of the request to "GET". Because the the original method of th request is "HEAD", which has no body in the response.