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
Where settings.bucket = "bucket-name" and settings.region = "us-east-1".
When reading the documentation, I am under the impression that the host endpoint to target should be: bucket-name.s3.amazonaws.com, but from what I see, the library targets s3.amazonaws.com, which might explain issue.
The text was updated successfully, but these errors were encountered:
tmattio
changed the title
Endpoint error for S3
Endpoint error for all S3 requests
Dec 12, 2019
First thanks for taking the time to checkout the library (unfortunately I've been offline for holidays for most of the last month otherwise I'd have replied earlier).
The S3 library still needs a bunch of work before it can be used. Your investigations are correct the URL structure is incorrect and needs fixing. Have a look at the Endpoints module and how that is used to build the url structure for the S3 request, it needs to look at the request and pull the bucket name out of it. I'll have some time later this week to look at this.
I am trying to use the S3 API. I tried both ListObjects and GetObjects.
For both, the result is the same - the answer from the server is not the one expected:
Vs
Here is the code I use:
Where
settings.bucket = "bucket-name"
andsettings.region = "us-east-1"
.When reading the documentation, I am under the impression that the host endpoint to target should be:
bucket-name.s3.amazonaws.com
, but from what I see, the library targetss3.amazonaws.com
, which might explain issue.The text was updated successfully, but these errors were encountered: