# TypeError: Network request failed on iPhone

**URL:** <https://forums.fusetools.com/t/typeerror-network-request-failed-on-iphone/3167>\
**Category:** General\
**Created:** [February 29, 2016, 11:21am UTC](https://forums.fusetools.com/t/typeerror-network-request-failed-on-iphone/3167 "2016-02-29T11:21:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kristofferhove](https://avatars.discourse-cdn.com/v4/letter/k/e95f7d/32.png) [@kristofferhove](https://forums.fusetools.com/u/kristofferhove)\
**Post date:** [February 29, 2016, 11:21am UTC](https://forums.fusetools.com/t/typeerror-network-request-failed-on-iphone/3167/1 "2016-02-29T11:21:43Z")

</div>

Hi!

I am doing this fetch:

```uno
fetch("http://www.spekterfestival.no/wp-json/wp/v2/pages&quot;)
.then(function(result) {
    if (result.status !== 200) {
      debug_log("Something went wrong, status code: " + result.status);
      return;
    }
    return result.json();
  }).then(function(data) {
    debug_log("Success!");

    for (var i = 0; i < 10; i++) {
      var item = data[i];
      dataFromSpekter.add(item);
    }
  }).catch(function(error) {
    debug_log("ErrorMessage: " + error);
});

```

On the local preview i get the data displayed, but on my iPhone I get:

> TypeError: Network request failed

Any idea how to fix this?

Kristoffer

---

<div class="post-metadata">

**Author:** ![Anders\_Lassen](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/anders_lassen/32/522_2.png) [@Anders\_Lassen](https://forums.fusetools.com/u/Anders_Lassen)\
**Post date:** [February 29, 2016, 12:29pm UTC](https://forums.fusetools.com/t/typeerror-network-request-failed-on-iphone/3167/2 "2016-02-29T12:29:58Z")

</div>

Hi!

Are you sure your iPhone is online? Try entering that URL in the phone’s browser?

---

<div class="post-metadata">

**Author:** ![kristofferhove](https://avatars.discourse-cdn.com/v4/letter/k/e95f7d/32.png) [@kristofferhove](https://forums.fusetools.com/u/kristofferhove)\
**Post date:** [February 29, 2016, 2:05pm UTC](https://forums.fusetools.com/t/typeerror-network-request-failed-on-iphone/3167/3 "2016-02-29T14:05:00Z")

</div>

Hi!

Yes, I tried the exact URL from above in the Safari browser on the iPhone first, and ther it shows the data as i should.

---

<div class="post-metadata">

**Author:** ![Remi\_Pedersen](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/remi_pedersen/32/432_2.png) [@Remi\_Pedersen](https://forums.fusetools.com/u/Remi_Pedersen)\
**Post date:** [March 9, 2016, 11:32am UTC](https://forums.fusetools.com/t/typeerror-network-request-failed-on-iphone/3167/4 "2016-03-09T11:32:06Z")

</div>

In case anyone else comes across this: The issue was due to the `NSAppTransportSecurity` in iOS defaulting to only allowing https.

It was resolved by updating to a more recent version of Fuse which contains a workaround for this.
