While our first version of this skill works well, it can be improved in a few key sections.
- Error-handling
- Session memory
- SSML
While our first version of this skill works well, it can be improved in a few key sections.
When we first set up this function, we didn't include any error-handling for our API calls. There is a chance that something happens with the API or with our call that causes it to fail. This could be a huge list of things such as broken internet connection, incorrect request, unknown location, expired API key, or the API going down.
To deal with this, we need to modify the way that our skill makes that request to the Open Weather Maps API. One of the limitations of using pure async and await is that we can't tell whether the request...