Skip to content

Commit 1a84beb

Browse files
committed
chore: adding a todo for consuoing the body of the response
1 parent 1a5204d commit 1a84beb

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lambda-runtime/src/layers/api_client.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ where
9696
RuntimeApiClientFutureProj::Second(fut) => match ready!(fut.poll(cx)) {
9797
Ok(resp) if !resp.status().is_success() => {
9898
let status = resp.status();
99+
100+
// we should consume the response body of the call in order to give a more specific message.
101+
// https://github.com/aws/aws-lambda-rust-runtime/issues/1110
99102

100103
log_or_print!(
101104
tracing: tracing::error!(status = %status, "Lambda Runtime API returned non-200 response"),

0 commit comments

Comments
 (0)