Check the content type of response
MODIFY
WalletWasabi/Extensions/HttpResponseMessageExtensions.cs
WalletWasabi/Extensions/HttpResponseMessageExtensions.cs
@@ -89,9 +89,12 @@ namespace System.Net.Http
{
string error = null;
try
+ {
+ if (me.Content.Headers?.ContentType?.MediaType != "text/html")
{
error = await me.Content.ReadAsJsonAsync<string>().ConfigureAwait(false);
}
+ }
catch (Exception ex)
{
Logger.LogDebug(ex);

Check the content type of response