If you have found that the problem is not with your Alexa skill or Lex chatbot, there might be a problem with your Lambda. Before you start changing things in your code, it is often a good idea to create a test in the Lambda console. This should represent the request that is being sent by Alexa or Lex. Use this test to see whether it is your Lambda that is at fault or it works as expected.
If your test is unsuccessful, look in the logs for the error messages. This can often point you to the root of the problem.
Here are some things to check when trying to debug a Lambda:
- Your Lambda has all of the required packages installed
- Your permissions are correct
- All of your variables are correctly defined
- Your Lambda code is correct
- Everything your Lambda calls is working