stevenleeg / geemusic

A bridge between Google Music and Amazon's Alexa
GNU General Public License v3.0
662 stars 178 forks source link

Return empty response on playback status notifications #250

Closed mikeage closed 6 years ago

mikeage commented 6 years ago

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.

mikeage commented 6 years ago

Note that this doesn't affect functionality, but it does make the logs a lot cleaner :-)

mikeage commented 6 years ago

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 ;-)