Skip to content

S3Client.logger, content for error does not contain response information #6916

@Frezzaldo

Description

@Frezzaldo

Checkboxes for prior research

Describe the bug

When creating S3Client I provide a logger.

I see that for example content for info log have response information under metadata. But when logging error I cant find the same information. This is the closest information I can find:

{"error":{"$metadata":{"attempts":1,"totalRetryDelay":0}},"metadata":{"attempts":1,"totalRetryDelay":0}}

It would be nice to get more error information like status-code and/or message from server. Something that can actually tell me what the error is.

Regression Issue

  • Select this option if this issue appears to be a regression.

SDK version number

@aws-sdk/lib-storage:3.758.0

Which JavaScript Runtime is this issue in?

Browser

Details of the browser/Node.js/ReactNative version

node: v22.11.0, Chrome: 131.0.6778.85

Reproduction Steps

Observed Behavior

Expected Behavior

Possible Solution

No response

Additional Information/Context

No response

Metadata

Metadata

Assignees

Labels

bugThis issue is a bug.p3This is a minor priority issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions