fix error
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user