This repository was archived by the owner on Mar 16, 2019. It is now read-only.
This repository was archived by the owner on Mar 16, 2019. It is now read-only.
Catch exception error but without http error code #131
Closed
Description
Document say that when http response error would return statusCode (404, 304, 500,...)
i.e,
fetch('GET', url, headers)
.then((response) => { // when response status code is 200
...
})
.catch((errorMessage, statusCode) => { // Status code is not 200
^^^^^^^^^^^^
...
}
But I always get undefined for variable: "statusCode".
Additional Information:
react-native: 0.29.2
react-native-fetch-blob: 0.9.4
iOS: 8.X & 9.X