Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
Unable to interact with DigitalOcean CDN using boto3
In Wizart LLC we are using boto3 client for Python to interact with DigitalOcean Spaces.
After the CDN was enabled for our spaces, we become unable to access data stored in buckets.
For example, stored files can be accessed via the following CDN link:
But boto3 SDK generates URLs like this one given in the form:
which seems to be an invalid CDN URL for DigitalOcean Spaces.
When CDN is not specified - the file is accessible with no problems:
https://fra1.digitaloceanspaces.com/wizart-storage-data-dev/interiors/uploaded/images/07IRgHJ2PFhVqVrJDCIpzhghqe4TwK1cSSUXaC4T.jpeg Is any workaround can be applied in our case?