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

Invalid ELF Header - AWS Lambda #55

Closed
zammitjames opened this issue Mar 17, 2023 · 2 comments
Closed

Invalid ELF Header - AWS Lambda #55

zammitjames opened this issue Mar 17, 2023 · 2 comments

Comments

@zammitjames
Copy link

zammitjames commented Mar 17, 2023

When trying to use the library on AWS Lambda, I'm getting the following error:

"/var/task/node_modules/hnswlib-node/build/Release/addon.node: invalid ELF header".

It looks like it's a binding issue?

@yoshoku
Copy link
Owner

yoshoku commented Mar 18, 2023

@zammitjames hnswlib-node is a native addon module using node-addon-api. To run it on AWS Lambda, I think you need to build it with an Amazon Linux docker image and deploy the zip file including the node_modules directory.

@zammitjames
Copy link
Author

Makes sense - thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants