Monitoring platform for keeping systems up and running at all times.
Full stack visibility across the entire stack.
Detect and resolve any incident in record time.
Conform to industry best practices.
This error occurs when the Lambda function is not able to initialise and the execution halts before reaching the handler function.
Dashbird continuously monitors and analyses your serverless applications to ensure reliability, cost and performance optimisation and alignment with the Well Architected Framework.
Type: LOG EVENT Severity: CRITICAL Error message: *Handler '*' missing on module || *Unable to import module '*': Error || *module initialization error:
One of your functions can’t initialize, and the execution halts before reaching the handler function.
Usually, this is caused by an issue in the require or include statements of the code.
You should look out for typos or inconsistencies in your project’s file structure.
Below are solutions and discussions for different variations of this problem.
For a detailed read on why this happens and how to solve it step by step, read our Debugging with Dashbird: Lambda Configuration Error article.
This rule resolution is part of the Dashbird Serverless Well Architected Reports tool for AWS. Dashbird features a collection of rules and checks continuously applied to your infrastructure, surfacing ways to improve it.
Catch errors and inefficiencies in Lambda and learn the best practice rules for AWS Lambda.
Dashbird is a monitoring, debugging and intelligence platform designed to help serverless developers build, operate, improve, and scale their modern cloud applications on AWS environment securely and with ease.