fix: don't ignore http status code
This commit is contained in:
@@ -90,7 +90,8 @@ pub trait MaiVersionExt: MaiVersion {
|
|||||||
let req = spawn_blocking(move || Self::api_call(api, agent_extra, data))
|
let req = spawn_blocking(move || Self::api_call(api, agent_extra, data))
|
||||||
.await
|
.await
|
||||||
.map_err(|_| ApiError::JoinError)??;
|
.map_err(|_| ApiError::JoinError)??;
|
||||||
let data = client.request(req).await?.bytes().await?;
|
let resp = client.request(req).await?.with_successful_status()?;
|
||||||
|
let data = resp.bytes().await?;
|
||||||
|
|
||||||
debug!("received: {data:?}");
|
debug!("received: {data:?}");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user