gladius / spring-boot-digital-ocean-spaces

DigitalOcean Spaces Integration with Spring boot using AWS S3 java SDK
https://thepro.io/post/spring-boot-and-digitalocean-spaces-for-file-storage-Q1
MIT License
60 stars 13 forks source link

Correct "endpoint" definition #4

Open tarekbazine opened 3 years ago

tarekbazine commented 3 years ago

From the article https://thepro.io/post/spring-boot-and-digitalocean-spaces-for-file-storage-Q1

Considering a public DO space endpoint that looks like https://bucketname.region.endpoint you should be able to extract bucket name, region and endpoint as follows

https://appname.fra1.digitaloceanspaces.com ( Bucket Name / region / Enpoint )

It results in : digitaloceanspaces s3 with root cause java.net.UnknownHostException: .digitaloceanspaces.com

so endpoint should be: [region].digitaloceanspaces.com ex : fra1.digitaloceanspaces.com

thanks for the article.

PS : this might be caused by a change in the AWS java sdk 😕

willynganga commented 1 year ago

Thank you for this.