Open srdosramos opened 2 months ago
Hey @srdosramos,
We have created an internal ticket to look into this which we will be tracking as "GHC-168"
Hey @srdosramos,
Quick update, I have taken a look and have moved this to our Nodes / Integrations team to resolve in a future release.
Bug Description
Issue: When creating a custom HTTP request to the AWS S3 endpoint, an error is encountered:
AuthorizationHeaderMalformed: The authorization header is malformed; the region 's3' is wrong; expecting 'us-east-1'us-east-1.
Details: Upon inspecting the error details, it was found that the authorization header is incorrect. Here is an example of the erroneous authorization header displayed in the error details:
In the authorization header, the service
s3
is duplicated (/s3/s3/aws4_request
) instead of specifying the region. It should be/us-east-1/s3/aws4_request
.Correct Example: The correct format for the authorization header should be as follows:
Fix the authorization header to include the appropriate region to resolve this issue.
To Reproduce
On a workflow:
"x-amz-copy-source":"/[bucket]/[filepath]"
,"x-amz-metadata-directive":"REPLACE"
,"content-type": "text/html"
Expected behavior
The file on the url should change the content type to text/html
Operating System
Ubuntu 22.04
n8n Version
v1.54.4
Node.js Version
v20.15.0
Database
PostgreSQL
Execution mode
main (default)