You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// ... client = new Client(...);
// some authentication logic...
// some other queries to GitHub that work correctly
var url = "https://api.github.com/repos/SomeOrg/SomePrivateRepo/zipball";
var response = await this.client.Connection.Get<byte[]>(new Uri(url),
new Dictionary<string, string>(),
null);
var data = response.Body;
var responseData = response.HttpResponse.Body;
Three problems:
data is null
responseData is of type string
when I try Encoding.ASCII.GetBytes(response.HttpResponse.Body.ToString()); I get invalid zip file
Am I doing something wrong or is it a bug?
The text was updated successfully, but these errors were encountered:
I have the following code:
Three problems:
data
isnull
responseData
is of typestring
Encoding.ASCII.GetBytes(response.HttpResponse.Body.ToString());
I get invalid zip fileAm I doing something wrong or is it a bug?
The text was updated successfully, but these errors were encountered: