Closed mikeage closed 6 years ago
Note that this doesn't affect functionality, but it does make the logs a lot cleaner :-)
No problem. Because I was new to geemusic (and Alexa in general), all the extra 400s (and the second 400, which was the response to AWS telling us that it got the first 400) was noise that kept confusing me, so I had to work on this ;-)
The documentation for Flask-Ask shows these events not having a return code, which results in a 400, which causes Alexa to send back a failure notification, which causes another 400.
Based on https://forums.developer.amazon.com/questions/93088/what-is-the-correct-way-to-return-nothing-for-audi.html, this commit sends back a basically empty response, but still valid JSON.