fetch("http://httpbin.org/post")
.then(response => response.json())
.then(responseData => {})
.catch(error => {
Alert.alert("error:" + error);
});
I am trying to get fetches to work on Android. The sample code above get's called, however, it alerts "error:TypeError: Network request failed".
I have the INTERNET permission set in my Android manifest file. Not really sure what else to do. Is there a way I can find out the reason for the error?
EDIT When debugging, status is 0, timeout is 0, response is null, responseURL is undefined, and responseType is blob.