I have tried using both fetch and axios. But both of these calls fail in my react-native application. It always goes into the catch function. Though calling this api from the browser or from Postman works fine.

```js
axios.get('http://sahajdevapi.letsendorse.com')
.then(function (response) {
  console.warn("res 1: ", response);
}).catch(function (error) {
  console.warn("err 1: ", error);
});
```

The error that I get from the catch function is as follows:

```
'err:', { [TypeError: Network request failed]
line: 24115,
column: 31,
sourceURL: 'http://localhost:8081/index.delta?platform=android&dev=true&minify=false'}

```