Access denied to rendered video file

We are encountering problems with some of the generated videos.

When we check the rendering status we get an status = “done”, but when we go to the generated URL, it gives us an Access Denied error. as shown below:

<Error>
    <Code>AccessDenied</Code>
    <Message>Access Denied</Message>
    <RequestId>X98KNMZM3F3N1Y7Y</RequestId>
    <HostId>
        kKpBqVPb4krrDKjK3PQGpVEZx1d6Kp/9kc4IjuIAPHQCe4B7gJywL/MtLRyhaviMNxofkDR5JLc=
    </HostId>
</Error>

Videos generated by the API are only available for 24 hours and must be transferred to a hosting provider within that time.

By default all files are transferred to Shotstacks hosting service which serves the files via a CDN. You can also chose alternative hosting providers that we integrate - currently Mux and AWS S3.

When files are transferred to the Shotstack hosting service you can use a URL like:

https://cdn.shotstack.io/{REGION}/{STAGE}/{ACCOUNT_ID}/{RENDER_ID}.{EXTENSION}

Here is an example, if the temporary URL looks like this:
https://shotstack-api-v1-output.s3-ap-southeast-2.amazonaws.com/msgtwx8iw6/58042b8e-6bf7-4969-b7fa-b4ff4e7e4504.mp4

The Shotstack hosted CDN url would be:
https://cdn.shotstack.io/au/v1/msgtwx8iw6/58042b8e-6bf7-4969-b7fa-b4ff4e7e4504.mp4

For more info about integrating with hosting providers start here: