marcy-terui / serverless-alexa-skills

Manage your Alexa Skills with Serverless Framework
https://www.npmjs.com/package/serverless-alexa-skills
MIT License
71 stars 13 forks source link

check update status to report errors on `build` and `update` #29

Open lukelafountaine opened 5 years ago

lukelafountaine commented 5 years ago

Currently, the build and update commands assume success.

Since these commands are asynchronous, we need to make successive calls to check on the status of the operation. The SMAPI docs mention that the response for these requests contain a Location header which is a relative URL that can be used to track the status. This PR makes use of that Location URL to report any actual errors that have happened.

driskell commented 3 years ago

Thanks for this - it really helped work out why things were failing!