I have a simple alexa skill (ask-sdk from Node.js) with an intent that is calling a REST API (numbersapi.com) then returning the response to the user. I am using the simulator. For some reason the actual response is not being returned, instead I get back "There was a problem with the requested skill's response" in the simulator dialog. If I remove the call to the REST API, then I get an proper/expected response in the simulator. I have also tried using Promises, and still same issue. Attached you will see my code. My code looks no different than the examples in the amazon github repos.
I am also attaching a screen shot from cloudwatch so you can see the log statements that are being generated from the myindexjs.txt code.
The alexa skill is connected to an amazon lambda function (Node.js 8.10).
I have been battling this for almost a whole day now without success. I would really appreciate any help.
P.S. file is named as '.txt' so that it can upload on this forum. Just remove the .txt and it will run in node.js lambda