MyOwnClone / google-api-dotnet-client

Automatically exported from code.google.com/p/google-api-dotnet-client
Apache License 2.0
1 stars 0 forks source link

HttpErrorCode not set in GoogleApiException #394

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi!

When calling any service built on Google.Apis .net client library the 
HttpErrorCode is not set when a GoogleApiException is thrown.

In the attached code I excpect the HttpErrorCode to be 404 but it is 0.

BR
/Tor

Original issue reported on code.google.com by tor.jons...@lineducation.se on 26 Sep 2013 at 7:28

Attachments:

GoogleCodeExporter commented 9 years ago
The error code should be set when creating the GoogleApiException in the 
ParseResponse method in Google.Apis.Requests.ClientServiceRequest. Now the 
status code is not set at all.

Original comment by tor.jons...@lineducation.se on 26 Sep 2013 at 8:18

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
It happens because a dependency was missing (Zlib). Need to investigate! 

Original comment by pele...@google.com on 14 Oct 2013 at 6:49

GoogleCodeExporter commented 9 years ago

Original comment by pele...@google.com on 30 Oct 2013 at 1:42

GoogleCodeExporter commented 9 years ago

Original comment by pele...@google.com on 11 Dec 2013 at 1:12