Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AWS Lambda error #103

Open
miguelwebtales opened this issue Nov 3, 2023 · 1 comment
Open

AWS Lambda error #103

miguelwebtales opened this issue Nov 3, 2023 · 1 comment
Labels

Comments

@miguelwebtales
Copy link

I am getting a error on running the code sample bellow on AWS lambda with node version 16. On local it's ok.

The gzipper version is the 7.2.0

const { Compress } = require('gzipper');
const gzip = new Compress('./src', './dist', {
  verbose: true,
  brotli: true,
  deflate: true,
});

try {
  const files = await gzip.run();
  console.info('Compressed files: ', files);
} catch (err) {
  console.error(err);
}

Error logs:

Error: Initiated Worker with invalid execArgv flags: --expose-gc, --max-semi-space-size=102, --max-old-space-size=1844
    at Compress.<anonymous> (/var/task/node_modules/gzipper/src/Compress.js:184:31)
    at step (/var/task/node_modules/gzipper/src/Compress.js:44:23)
    at Object.throw (/var/task/node_modules/gzipper/src/Compress.js:25:53)
    at rejected (/var/task/node_modules/gzipper/src/Compress.js:17:65)
@gios
Copy link
Owner

gios commented Jun 17, 2024

Hi @miguelwebtales , did you set some Node CLI arguments (execArgv) when you run gzipper?

@gios gios added the bug label Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants