spring-boot-digital-ocean-spaces icon indicating copy to clipboard operation
spring-boot-digital-ocean-spaces copied to clipboard

Correct "endpoint" definition

Open tarekbazine opened this issue 4 years ago • 1 comments
trafficstars

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 😕

tarekbazine avatar Mar 26 '21 12:03 tarekbazine

Thank you for this.

willynganga avatar Jun 23 '23 08:06 willynganga