From 2445bd54ae38365b4581d3116464efe3e3a14909 Mon Sep 17 00:00:00 2001 From: Aleksandr-Kievskiy Date: Mon, 2 Aug 2021 15:15:55 +0300 Subject: [PATCH] Use 'RestCallFileAsync' instead of 'RestCallAsync' in DownloadBatchAsync, which causes parser to throw exception. --- src/AvaTaxApi.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AvaTaxApi.cs b/src/AvaTaxApi.cs index b1953390..3435910a 100644 --- a/src/AvaTaxApi.cs +++ b/src/AvaTaxApi.cs @@ -11145,7 +11145,7 @@ public async Task DownloadBatchAsync(Int32 companyId, Int32 batchId, path.ApplyField("companyId", companyId); path.ApplyField("batchId", batchId); path.ApplyField("id", id); - return await RestCallAsync("GET", path, null).ConfigureAwait(false); + return await RestCallFileAsync("GET", path, null).ConfigureAwait(false); }