This commit is contained in:
@@ -150,6 +150,10 @@ namespace AyaNova.PlugIn.V8
|
||||
|
||||
HttpResponseMessage response = await client.SendAsync(requestMessage);
|
||||
var responseAsString = await response.Content.ReadAsStringAsync();
|
||||
if (!response.IsSuccessStatusCode)
|
||||
{
|
||||
throw new Exception(responseAsString + "\n" + response.ReasonPhrase);
|
||||
}
|
||||
|
||||
return new ApiResponse() { HttpResponse = response, ObjectResponse = Parse(responseAsString) };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user