Revert "fix error"

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