From 9e5fee9608dfd9fdd668a5bc87e94e19f859e38e Mon Sep 17 00:00:00 2001 From: Zane Schepke Date: Mon, 17 Jun 2024 18:36:21 -0400 Subject: [PATCH] fix error --- common/http-api-client/src/lib.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/common/http-api-client/src/lib.rs b/common/http-api-client/src/lib.rs index da9f229f4e..18daf329f8 100644 --- a/common/http-api-client/src/lib.rs +++ b/common/http-api-client/src/lib.rs @@ -520,11 +520,8 @@ where } if res.status().is_success() { - let text = res.text().await?; - info!("{:#?}", res); - info!("{:#?}", text); - let json: Vec = serde_json::from_str(&text)?; - Ok(json) + info!(res); + Ok(res.json().await?) } else if res.status() == StatusCode::NOT_FOUND { Err(HttpClientError::NotFound) } else {