tencentyun / qcloud-sdk-dotnet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

errorcode is null

wgy855 opened this issue · comments

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

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.