You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a bucket named wrd-media-archive in region us-east-1. I'm making a listObjectsV2 call to https://wrd-media-archive.s3.amazonaws.com/ using the HTTP module. The credential I'm using has the region specified as us-east-1. However, I get this error when I make the http request. I'm guessing that N8N is using the region S3 in the "cannonical headers" portion of the auth header calculation instead of using the value from the credential.
Bug Description
I have a bucket named wrd-media-archive in region us-east-1. I'm making a listObjectsV2 call to https://wrd-media-archive.s3.amazonaws.com/ using the HTTP module. The credential I'm using has the region specified as us-east-1. However, I get this error when I make the http request. I'm guessing that N8N is using the region S3 in the "cannonical headers" portion of the auth header calculation instead of using the value from the credential.
Error code: 400
Full message: 400 - "
<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>AuthorizationHeaderMalformed</Code><Message>The authorization header is malformed; the region 's3' is wrong; expecting 'us-east-1'</Message><Region>us-east-1</Region><RequestId>YRJ175KYNDK8S1EE</RequestId><HostId>SLEa1+LB2woZ15VTf9ybhi56J5rE9k42qX+YHlDSBRJOrpo199l75NEMesp/dTe4nRGzS+ckLpA=</HostId></Error>
"Request:
{ "headers": { "accept": "application/json,text/html,application/xhtml+xml,application/xml,text/*;q=0.9, image/*;q=0.8, */*;q=0.7", "Host": "wrd-media-archive.s3.amazonaws.com", "X-Amz-Content-Sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "X-Amz-Date": "20241213T160555Z", "Authorization": "**hidden**" }, "method": "GET", "uri": "https://wrd-media-archive.s3.amazonaws.com/", "gzip": true, "rejectUnauthorized": true, "followRedirect": true, "resolveWithFullResponse": true, "followAllRedirects": true, "timeout": 300000, "qs": { "list-type": "2", "max-keys": "10", "prefix": "instagram" }, "encoding": null, "json": false, "useStream": true, "url": "https://wrd-media-archive.s3.amazonaws.com/" }
To Reproduce
Expected behavior
The request authorization header should be calculated correctly
Operating System
Amazon Linux 2003
n8n Version
1.70.3
Node.js Version
v22.12.0
Database
PostgreSQL
Execution mode
main (default)
The text was updated successfully, but these errors were encountered: