I am by no means a coder, so this is probably very simple for others, but not for me. I have studied TidePooler and HistoryBuff and I've gotten a skill to report the value of a REST node. But I want a skill to PUT (or POST, either one) as well, and whenever I try, I get the error "Process exited before completing request." My full code is here:
http://stackoverflow.com/questions/35305202/http-posting-using-alexa-and-js Can anyone spot what I am doing wrong? Testing in Lambda: When I leave out lines about output() and test through Lambda, I get the error, although it does post to REST successfully. However, I get no response from Alexa (obviously). When I put those lines in at the end of the callback, and test through Lambda, I get no error, and console logs show the whole program runs, and shows the text of an Alexa response, but it does not post. ... so I can either get a response from Alexa, or I can post, but never both. Testing in the skills simulator: I always get "The response is invalid," so Alexa never says anything. If the output() lines are in I also get "Process exited before completing request" and it posts to REST. If they are commented out, it does not post but there is no error. Testing with the Echo, I can never get her to say anything except "Sorry I couldn't find the answer to your question." This is driving me nuts because I seemingly get the error when it actually executes, and no error when it does nothing. And the Alexa responses seem to not work for me in this skill no matter what I try. Thanks for any help!