Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Doc : Add errors from API handling examples #633
Fix Issue #582
I found out, by reading the source code, that aws-amplify is using Axios to handle http calls. This choice introduce a particular way of manage errors coming from API comparing to Fetch. (see this issue )
This PR is a proposal for explicitly tell developers that Axios is used.
By doing this, it also makes much clearer the use of an
It also warn the developers that status code > 299 are thrown as an exception. Which is not obvious when using Fetch.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
@@ Coverage Diff @@ ## master #633 +/- ## ========================================= Coverage ? 89.19% ========================================= Files ? 69 Lines ? 3221 Branches ? 612 ========================================= Hits ? 2873 Misses ? 330 Partials ? 18