Skip to content

🎥 Make videos programmatically with React

fix(lambda-client): do not dump payload into oversize error

DeryFerd55a147a69b36
diff --git a/packages/lambda-client/src/call-lambda-async.ts b/packages/lambda-client/src/call-lambda-async.ts
index 0ee16526b2..41daee3c34 100644
--- a/packages/lambda-client/src/call-lambda-async.ts
+++ b/packages/lambda-client/src/call-lambda-async.ts
@@ -22,7 +22,7 @@ export const callFunctionAsyncImplementation = async <
const byteLength = Buffer.byteLength(stringifiedPayload);
if (byteLength > 256 * 1024) {
throw new Error(
- `Payload is too big: ${byteLength} bytes. Maximum size is 256 KB. This should not happen, please report this to the Remotion team. Payload: ${stringifiedPayload}`,
+ `Payload is too big: ${byteLength} bytes. Maximum size is 256 KB. This should not happen, please report this to the Remotion team.`,
);
}