Skip to content

NodeJs agent fails to instantiate in AWS Lambda in runtime Node v12.x #9

@mkosterOST

Description

@mkosterOST

Earlier today I attempted to run a StackImpact agent in an AWS Lambda environment, using the NodeJS 12.x runtime. AWS Lambda currently uses NodeJS 12.16.3, specifically (Running on linux-x64). My call to "agent.start(params)" failed, with the following error message: "Finding/loading of native addon failed."

After this, I updated my local version of NodeJS to the same node version (12.16.3), and was able to reproduce the issue on a windows machine.

It appears that the Agent is failing to resolve an addon because the file abi-map.json does not contain a mapping from NodeJS v12.16.3 to the proper precompiled addon version. The file contains v12.16.0 and v12.16.1, but is missing subsequent minor versions of Node 12.

Modifying this file and adding v12.16.3 resolves the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions