This repository was archived by the owner on Sep 13, 2023. It is now read-only.
This repository was archived by the owner on Sep 13, 2023. It is now read-only.
"invalid ELF header" in AWS Lambda #201
Open
Description
Hey,
I was trying to use Snappy to compress some data before pushing them to a datastore in my Node 12.x
Lambda. Unfortunately I'm getting below error:
2021-03-14T13:39:14.674Z undefined ERROR Uncaught Exception
{
"errorType": "Error",
"errorMessage": "/var/task/node_modules/snappy/build/Release/binding.node: invalid ELF header",
"stack": [
"Error: /var/task/node_modules/snappy/build/Release/binding.node: invalid ELF header",
" at Object.Module._extensions..node (internal/modules/cjs/loader.js:1057:18)",
" at Module.load (internal/modules/cjs/loader.js:863:32)",
" at Function.Module._load (internal/modules/cjs/loader.js:708:14)",
" at Module.require (internal/modules/cjs/loader.js:887:19)",
" at require (internal/modules/cjs/helpers.js:74:18)",
" at bindings (/var/task/node_modules/bindings/bindings.js:112:48)",
" at Object.<anonymous> (/var/task/node_modules/snappy/snappy.js:2:34)",
" at Module._compile (internal/modules/cjs/loader.js:999:30)",
" at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)",
" at Module.load (internal/modules/cjs/loader.js:863:32)"
]
}
Any ideas how I could solve that problem?
Metadata
Metadata
Assignees
Labels
No labels