fix error

This commit is contained in:
Zane Schepke
2024-06-17 18:36:21 -04:00
parent dcb66576da
commit 9e5fee9608
+2 -5
View File
@@ -520,11 +520,8 @@ where
}
if res.status().is_success() {
let text = res.text().await?;
info!("{:#?}", res);
info!("{:#?}", text);
let json: Vec<String> = serde_json::from_str(&text)?;
Ok(json)
info!(res);
Ok(res.json().await?)
} else if res.status() == StatusCode::NOT_FOUND {
Err(HttpClientError::NotFound)
} else {