Correct your Lambda code
You also need to check that the code in your Lambda is correct. As your Lambdas become more complex, it becomes harder to get them working the first time. Run the tests that you've created, and look for the error message.
If you don't know what the error message means or how to fix it, search online as there will have been other people who have encountered this error before. Make sure you read the replies on how to fix the error and understand why that solution works before using it in your code. It helps you become a better developer and allows you to fix it if there is an error with it in the future.
If the bug isn't obvious from the error message, you can use console.log('Some information') to log out whenever ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access