Closed angeloashmore closed 1 year ago
I suggest changing ScreenshotsManager.prototype.uploadScreenshot()
to initialize an S3 ACL rather than asserting that it was initialized. initS3ACL()
is idempotent, so we can initialize it early and just in time in case it wasn't already initialized.
That that line can become:
async uploadScreenshot(
args: ScreenshotsManagerUploadScreenshotArgs,
): Promise<ScreenshotsManagerUploadScreenshotReturnType> {
await this.initS3ACL();
// ...
}
This should be fixed with version 1.0.3
. Thanks for your report!
Versions
1.0.2
Reproduction
N/A
Steps to reproduce
Push changes to Prismic containing a new screenshot.
What is expected?
Changes are pushed to Prismic.
What is actually happening?
An error occurs when uploading the screenshots. See the following screenshot of the error.
This error was originally reported by @draykefriesen and @tjkohli here: https://github.com/prismicio/slice-machine/issues/939#issuecomment-1532242808.
It's possible the error reported in #939 is related to the error reported here.