yihong0618 commented on code in PR #5554: URL: https://github.com/apache/opendal/pull/5554#discussion_r1917774953
########## core/src/services/s3/error.rs: ########## @@ -49,9 +49,10 @@ pub(super) fn parse_error(resp: Response<Buffer>) -> Error { _ => (ErrorKind::Unexpected, false), }; - let (message, s3_err) = de::from_reader::<_, S3Error>(body.clone().reader()) + let body_content = body.chunk(); Review Comment: fixed ########## core/src/services/azblob/error.rs: ########## @@ -76,7 +76,8 @@ pub(super) fn parse_error(resp: Response<Buffer>) -> Error { _ => (ErrorKind::Unexpected, false), }; - let mut message = match de::from_reader::<_, AzblobError>(bs.clone().reader()) { + let bs_content = bs.chunk(); Review Comment: fixed -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@opendal.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org