“invalid ELF header” when using the nodejs “ref” module on AWS Lambda

前端 未结 2 1983
一生所求
一生所求 2020-12-01 16:11

I\'ve just uploaded a zip to AWS Lambda which included the \"ref\" (https://www.npmjs.com/package/ref), which is needed to validate an iOS Game Center authentication token (

2条回答
  •  遥遥无期
    2020-12-01 16:18

    This happens when you build on one architecture and then attempt to use the same built addon on a different architecture (or platform in some cases).

    According to this page, addons may have to be compiled against an Amazon Linux image on EC2 in order for the compiled addons to be usable on their Lambda service.

提交回复
热议问题