From 2a9f9e1d7bbf93be7c84ee61901fc5005aef1e0d Mon Sep 17 00:00:00 2001 From: Artur Pietrzyk Date: Wed, 24 Apr 2024 01:21:45 +0200 Subject: [PATCH] REST API SDK 3.2.1 --- data-api/csharp-rest/CoinAPI.REST.V1/CoinApiRestClient.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data-api/csharp-rest/CoinAPI.REST.V1/CoinApiRestClient.cs b/data-api/csharp-rest/CoinAPI.REST.V1/CoinApiRestClient.cs index dd5bafa30..45da2ca5e 100644 --- a/data-api/csharp-rest/CoinAPI.REST.V1/CoinApiRestClient.cs +++ b/data-api/csharp-rest/CoinAPI.REST.V1/CoinApiRestClient.cs @@ -60,7 +60,7 @@ private async Task GetData(string url) private static async Task RaiseError(HttpResponseMessage response) { - var responseString = await responseMessage.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseString = await response.Content.ReadAsStringAsync().ConfigureAwait(false); var message = (await DeserializeFromString(responseString).ConfigureAwait(false))?.message ?? responseString; switch ((int)response.StatusCode)