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:

Is any workaround can be applied in our case?
Submit an answer

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!