Skip to content

Commit bc5319a

Browse files
committed
fix(api): dont 500 on cross dc response
1 parent cf68e1c commit bc5319a

File tree

1 file changed

+1
-3
lines changed
  • engine/packages/api-util/src

1 file changed

+1
-3
lines changed

engine/packages/api-util/src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,7 @@ pub async fn reqwest_to_axum_response(reqwest_response: reqwest::Response) -> Re
182182

183183
if !status.is_success() {
184184
let body_text = String::from_utf8_lossy(&body_bytes);
185-
anyhow::bail!(
186-
"remote dc returned error (status: {status}, ray_id: {ray_id:?}, body: {body_text})"
187-
);
185+
tracing::error!(?status, ?ray_id, %body_text, "remote dc returned error");
188186
}
189187

190188
let mut response = Response::builder()

0 commit comments

Comments
 (0)