Skip to content

πŸŽ₯ Make videos programmatically with React

throw error when calling getRenderProgress() on a still

Jonny Burger97cdaddea8a9
diff --git a/packages/lambda/src/functions/helpers/get-progress.ts b/packages/lambda/src/functions/helpers/get-progress.ts
index a84e902f8a..5476cbbf13 100644
--- a/packages/lambda/src/functions/helpers/get-progress.ts
+++ b/packages/lambda/src/functions/helpers/get-progress.ts
@@ -145,6 +145,12 @@ export const getProgress = async ({
]
);
+ if (renderMetadata?.type === 'still') {
+ throw new Error(
+ "You don't need to call getRenderProgress() on a still render. Once you have obtained the `renderId`, the render is already done! πŸ˜‰"
+ );
+ }
+
const outputFile = renderMetadata
? await findOutputFileInBucket({
bucketName,