Skip to content

Commit

Permalink
Additional Debugging Info on 403 Error
Browse files Browse the repository at this point in the history
  • Loading branch information
JesusFileto committed Dec 4, 2024
1 parent 23f5e3a commit b2ff9fd
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions libs/chonky/src/embedding/multi_modal_embedding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,13 @@ pub async fn make_multimodal_api_request(
if !response.status().is_success() {
return Err(
Report::new(ChonkyError::VertexAPI).attach_printable(format!(
"Received the error code {} in the response status",
response.status()
"Received the error code {} in the response status with error text {:?}",
response.status(),
response
.error_for_status()
.change_context(ChonkyError::VertexAPI)?
.text()
.await,
)),
);
}
Expand Down

0 comments on commit b2ff9fd

Please sign in to comment.