@remotion/lambda-client 4.0.353 → 4.0.355

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
 
2
2
  
3
- > @remotion/lambda-client@4.0.353 make /Users/jonathanburger/remotion/packages/lambda-client
3
+ > @remotion/lambda-client@4.0.355 make /Users/jonathanburger/remotion/packages/lambda-client
4
4
  > tsc -d && bun --env-file=../.env.bundle bundle.ts
5
5
 
6
- [49.46ms] Generated.
6
+ [265.96ms] Generated.
@@ -94,13 +94,14 @@ const callLambdaWithStreamingWithoutRetry = async ({ functionName, type, payload
94
94
  const callFunctionWithStreamingImplementation = async (options) => {
95
95
  // As of August 2023, Lambda streaming sometimes misses parts of the JSON response.
96
96
  // Handling this for now by applying a retry mechanism.
97
- var _a;
97
+ var _a, _b;
98
98
  try {
99
99
  // Do not remove this await
100
100
  await callLambdaWithStreamingWithoutRetry(options);
101
101
  }
102
102
  catch (err) {
103
- if ((_a = err.stack) === null || _a === void 0 ? void 0 : _a.includes('TooManyRequestsException')) {
103
+ if (((_a = err.stack) === null || _a === void 0 ? void 0 : _a.includes('TooManyRequestsException')) ||
104
+ ((_b = err.message) === null || _b === void 0 ? void 0 : _b.includes('ConcurrentInvocationLimitExceeded'))) {
104
105
  throw new Error(`AWS Concurrency limit reached (Original Error: ${err.message}). See https://www.remotion.dev/docs/lambda/troubleshooting/rate-limit for tips to fix this.`);
105
106
  }
106
107
  if (!err.message.includes(INVALID_JSON_MESSAGE) &&
@@ -16679,7 +16679,7 @@ var validateDownloadBehavior = (downloadBehavior) => {
16679
16679
  }
16680
16680
  }
16681
16681
  };
16682
- var VERSION = "4.0.353";
16682
+ var VERSION = "4.0.355";
16683
16683
  var isColorSupported = () => {
16684
16684
  const env = process.env || {};
16685
16685
  const isForceDisabled = "NO_COLOR" in env;
@@ -16947,7 +16947,7 @@ var printUsefulErrorMessage = (err, logLevel, indent) => {
16947
16947
  }, "Alternatively, you can decrease the memory size of your Lambda function to a value below 3008 MB. See: https://www.remotion.dev/docs/lambda/runtime#core-count--vcpus");
16948
16948
  Log.warn({ indent, logLevel }, "See also: https://repost.aws/questions/QUKruWYNDYTSmP17jCnIz6IQ/questions/QUKruWYNDYTSmP17jCnIz6IQ/unable-to-set-lambda-memory-over-3008mb");
16949
16949
  }
16950
- if (err.stack?.includes("TooManyRequestsException: Rate Exceeded.")) {
16950
+ if (err.stack?.includes("TooManyRequestsException: Rate Exceeded.") || err.message?.includes("ConcurrentInvocationLimitExceeded")) {
16951
16951
  Log.info({ indent, logLevel });
16952
16952
  Log.info({ indent, logLevel }, "\uD83D\uDCA1 This error indicates that your Lambda concurrency limit is too low. See: https://www.remotion.dev/docs/lambda/troubleshooting/rate-limit");
16953
16953
  }
@@ -18039,7 +18039,7 @@ var getExplanation = (stack) => {
18039
18039
  if (stack.includes("error while loading shared libraries: libnss3.so")) {
18040
18040
  return FAILED_TO_LAUNCH_TOKEN + " Will be retried - you can probably ignore this error.";
18041
18041
  }
18042
- if (stack.includes("TooManyRequestsException")) {
18042
+ if (stack.includes("TooManyRequestsException") || stack.includes("ConcurrentInvocationLimitExceeded")) {
18043
18043
  return `AWS returned an "TooManyRequestsException" error message which could mean you reached the concurrency limit of AWS Lambda. You can increase the limit - read this troubleshooting page: ${DOCS_URL}/docs/lambda/troubleshooting/rate-limit`;
18044
18044
  }
18045
18045
  if (errorIsOutOfSpaceError(stack)) {
@@ -18957,7 +18957,7 @@ var callFunctionWithStreamingImplementation = async (options) => {
18957
18957
  try {
18958
18958
  await callLambdaWithStreamingWithoutRetry(options);
18959
18959
  } catch (err) {
18960
- if (err.stack?.includes("TooManyRequestsException")) {
18960
+ if (err.stack?.includes("TooManyRequestsException") || err.message?.includes("ConcurrentInvocationLimitExceeded")) {
18961
18961
  throw new Error(`AWS Concurrency limit reached (Original Error: ${err.message}). See https://www.remotion.dev/docs/lambda/troubleshooting/rate-limit for tips to fix this.`);
18962
18962
  }
18963
18963
  if (!err.message.includes(INVALID_JSON_MESSAGE) && !err.message.includes(LAMBDA_STREAM_STALL) && !err.message.includes("Runtime.TruncatedResponse") && !err.message.includes("aborted")) {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/lambda-client"
4
4
  },
5
5
  "name": "@remotion/lambda-client",
6
- "version": "4.0.353",
6
+ "version": "4.0.355",
7
7
  "main": "dist/index.js",
8
8
  "sideEffects": false,
9
9
  "author": "Jonny Burger <jonny@remotion.dev>",
@@ -26,8 +26,8 @@
26
26
  "eslint": "9.19.0",
27
27
  "next": "15.4.7",
28
28
  "@types/mime-types": "2.1.1",
29
- "@remotion/serverless-client": "4.0.353",
30
- "@remotion/eslint-config-internal": "4.0.353"
29
+ "@remotion/serverless-client": "4.0.355",
30
+ "@remotion/eslint-config-internal": "4.0.355"
31
31
  },
32
32
  "publishConfig": {
33
33
  "access": "public"
@@ -192,7 +192,10 @@ export const callFunctionWithStreamingImplementation = async <
192
192
  // Do not remove this await
193
193
  await callLambdaWithStreamingWithoutRetry<T, Provider>(options);
194
194
  } catch (err) {
195
- if ((err as Error).stack?.includes('TooManyRequestsException')) {
195
+ if (
196
+ (err as Error).stack?.includes('TooManyRequestsException') ||
197
+ (err as Error).message?.includes('ConcurrentInvocationLimitExceeded')
198
+ ) {
196
199
  throw new Error(
197
200
  `AWS Concurrency limit reached (Original Error: ${(err as Error).message}). See https://www.remotion.dev/docs/lambda/troubleshooting/rate-limit for tips to fix this.`,
198
201
  );