1 parent 1a5204d commit 1a84bebCopy full SHA for 1a84beb
1 file changed
lambda-runtime/src/layers/api_client.rs
@@ -96,6 +96,9 @@ where
96
RuntimeApiClientFutureProj::Second(fut) => match ready!(fut.poll(cx)) {
97
Ok(resp) if !resp.status().is_success() => {
98
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
102
103
log_or_print!(
104
tracing: tracing::error!(status = %status, "Lambda Runtime API returned non-200 response"),
0 commit comments