spring-boot-digital-ocean-spaces
spring-boot-digital-ocean-spaces copied to clipboard
Correct "endpoint" definition
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 😕
Thank you for this.