Check Headers of S3 Response and Error #6476
Labels
guidance
General information and guidance, answers to FAQs, or recommended best practices/resources.
response-requested
Waiting on additional info and feedback. Will move to \"closing-soon\" in 7 days.
Checkboxes for prior research
Describe the bug
How can I check the headers of the response - in case of regular response and error response?
In the AWS CLI tool I can see all the response headers using the
--debug
flag (regardless if it throws and error).Regression Issue
SDK version number
aws-sdk/client-s3: 3.637.0
Which JavaScript Runtime is this issue in?
Node.js
Details of the browser/Node.js/ReactNative version
v20.11.0
Reproduction Steps
An example of error check headers:
How can we save the headers for validation later?
Note: this is an example, but the question is general.
Observed Behavior
Can't see all the headers on the thrown error.
Expected Behavior
To have the ability to see all the headers as we can in AWS CLI with the
debug
flag.Possible Solution
No response
Additional Information/Context
From the docs AWS docs:
If the specified version in the request is a delete marker, the response returns a 405 Method Not Allowed error and the Last-Modified: timestamp response header.
The text was updated successfully, but these errors were encountered: