-
-
Notifications
You must be signed in to change notification settings - Fork 84
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
Adapter does't work with ap-east-1 (HK) #139
Comments
Thanks for reporting. We need more details to analyze this. Can you give example results for working and non-working regions, to clearly describe what difference you are observing and why it is not working? |
This is example of URL I get when I'm uploading files to ap-east-1: https://impacked-bucket.s3.amazonaws.com/ae4f9b42e88d85f09dec2d9ebbacb047_download.jpeg But correct URL should be: https://impacked-bucket.s3.ap-east-1.amazonaws.com/ae4f9b42e88d85f09dec2d9ebbacb047_download.jpeg |
Can you please also share your S3 adapter configuration? |
Yes, of course var s3Adapter = new S3Adapter( |
How do you use the adapter in the context of Parse Server? filesAdapter: {
module: "@parse/s3-files-adapter",
options: {
bucket: ...,
region: ...,
bucketPrefix: ...,
baseUrl: ...,
signatureVersion: "v4",
}
}, |
This is how it is: var s3Adapter = new S3Adapter( var api = new ParseServer({ |
I would look into whether the way you initialize makes any difference. From your code it's not clear which adapter repo you are using. Either way, I suggest you take a look at the region parameter and how the URL is composed in the adapter. I would imagine the logic to be region-agnostic, but according to your description, it works for you if you change the region, so something doesn't add up. |
There is the issue with adapter: if I'm using with it ap-east-1 (HK) region - I can upload image without problems, however when I get wrong URL to access it.
The url does not specify region. Perfectly works with other regions
The text was updated successfully, but these errors were encountered: