refact: http, rust side, log errror (#12820)
Some checks failed
CI / ${{ matrix.job.target }} (${{ matrix.job.os }}) (map[os:ubuntu-22.04 target:x86_64-unknown-linux-gnu]) (push) Waiting to run
Full Flutter CI / run-ci (push) Waiting to run
Flutter Nightly Build / run-flutter-nightly-build (push) Has been cancelled

Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
fufesou 2025-09-04 15:04:53 +08:00 committed by GitHub
parent 15d471e520
commit 0f526fce6c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -148,7 +148,7 @@ impl OidcSession {
id: &str,
uuid: &str,
) -> ResultType<HbbHttpResponse<OidcAuthUrl>> {
Ok(OIDC_SESSION
let resp = OIDC_SESSION
.read()
.unwrap()
.client
@ -159,8 +159,14 @@ impl OidcSession {
"uuid": uuid,
"deviceInfo": crate::ui_interface::get_login_device_info(),
}))
.send()?
.try_into()?)
.send()?;
let status = resp.status();
match resp.try_into() {
Ok(v) => Ok(v),
Err(err) => {
hbb_common::bail!("Http status: {}, err: {}", status, err);
}
}
}
fn query(