🎥 Make videos programmatically with React
`remotion/lambda`: Add more flaky errors that should be retried
Jonny Burgerefb59341ffb6
diff --git a/packages/lambda/src/shared/is-flaky-error.ts b/packages/lambda/src/shared/is-flaky-error.tsindex 11bb98cc1c..41410a01c5 100644--- a/packages/lambda/src/shared/is-flaky-error.ts+++ b/packages/lambda/src/shared/is-flaky-error.ts@@ -1,5 +1,5 @@export const isFlakyError = (err: Error): boolean => {- const {message} = err;+ const message = err.stack ?? '';// storage.googleapis.com sometimes returns 500s, and Video does not have retry on its ownif (@@ -33,5 +33,17 @@ export const isFlakyError = (err: Error): boolean => {return true;}+ // https://github.com/remotion-dev/remotion/issues/2742+ if (message.includes('while trying to connect to the browser')) {+ return true;+ }++ // https://discord.com/channels/809501355504959528/1131234931863998665/1131998442219118622+ if (+ message.includes('RequestTimeout: Your socket connection to the server')+ ) {+ return true;+ }+return false;};