You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The node handler check is not handling the file extension for esm modules (mjs) correctly, so you always see as an error in aws lambdas, and this is misleading Startup check failed: missing handler file newrelic-lambda-wrapper.handler (NEW_RELIC_LAMBDA_HANDLER=src/handler.sqsHandler)
Steps to Reproduce
use nr lambda layers
have a mjs file as a handler
NEW_RELIC_USE_ESM env is set to true
the check will print this error Startup check failed: missing handler file newrelic-lambda-wrapper.handler (NEW_RELIC_LAMBDA_HANDLER=src/handler.sqsHandler)
Expected Behavior
the check should not print the error
Additional context
the tests are passing as this part is not tested in the code
A Patch for the test setup like it happens when you use the nr lambda layers and the setup
this patch let the test fails as it really runs through the code
Description
The node handler check is not handling the file extension for esm modules (mjs) correctly, so you always see as an error in aws lambdas, and this is misleading
Startup check failed: missing handler file newrelic-lambda-wrapper.handler (NEW_RELIC_LAMBDA_HANDLER=src/handler.sqsHandler)
Steps to Reproduce
Startup check failed: missing handler file newrelic-lambda-wrapper.handler (NEW_RELIC_LAMBDA_HANDLER=src/handler.sqsHandler)
Expected Behavior
Additional context
A Patch for the test setup like it happens when you use the nr lambda layers and the setup
this patch let the test fails as it really runs through the code
The text was updated successfully, but these errors were encountered: