-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configured for Amazon S3 storageService.getContainer() returns error #1052
Comments
+1 i have the same error right now and can't do anything in the S3 |
Any news on this topic? I've got the same problem and just opened a related issue here: strongloop/loopback-component-storage#101 I hope this fix should be quite simple for a loopback guru, but unfortunately I don't know where and how to fix it yet. It really seems to be related with the signature version which should be set to v4... This problem only occurs when using region Frankfurt and other new created aws regions. In old us and ireland regions the problem does not occur. |
Same issue here, Frankfurt region: The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256 |
+1 from me for the frankfurt region. |
@kgoedecke I've resolved it for myself, just try this: See here whats was the issue: aws/aws-sdk-js#829 var publicHandler = new StorageService( |
@gunjpan This isn't really solved. It's only solved if your region doesn't require V4 and you set your region. Regions like |
@jdforsythe : Hi, could you please open a new issue with detailed description of the problem you face, along with a reference to this issue. |
Hey there!
I want to implement a remote method for uploading images to Amazon S3.
According to the article http://docs.strongloop.com/display/public/LB/Storage+service I defined amazon's credentials in
/server/datasources.json
.Then in my model's code I am trying to implement a remote method:
At this stage this method only returns S3 buckets info & it works fine.
But if I replace
s3.getContainers()
call by s3.getContainer('myBucket`, fn), then this method return Error:I've made some research & found out that this error is caused by my bucket region requirement to use AWS Signature Version 4 for authentication.
If I use aws-sdk for Node.js to make requests to Amazon S3 API then I need to specify
signatureVersion
parameter:var s3 = new AWS.S3({signatureVersion: 'v4', region: 'eu-central-1'});
.How can I circumvent the problem in LoopBack?
The text was updated successfully, but these errors were encountered: