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 {