aws / aws/smithy-go

Close response body middleware log is not clear

Open
#425 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
255
Forks
81
Avg merge
1d 6h
Merged PRs (30d)
7

Description

In `middleware_close_response_body.go`, if we fail to copy the response body or close the response body, we couldn't see the error from the log.
Code url: https://github.com/aws/smithy-go/blob/main/transport/http/middleware_close_response_body.go#L65-L76

Contributor guide

Open the contributing guide

Research direction

Start in middleware_close_response_body.go at lines 65-76 and inspect the logging paths for response-body copy and close failures. Update the relevant log output so both errors are visible, then verify that the close-response-body middleware reports the failure details when either operation fails.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.