Network.request is not working on device with specified wifi network

I t works fine both on corona simulator and iOS simulator, but the problem happen on device with wifi network in my office. 

Any other application works fine. If I switch the network to 4G/LTE, it just works without any problem.

I have tried using wifi in my house and it just works fine. It’s really strange.

Is there anyone know how to solve the problem? Is it a bug?

I just parse the logs on my iphone if it helps, the version of my corona SDK is 2015.2702 (2015.8.27)

Sep 1 11:09:24 Chain-Zhangs-iPhone discoveryd[9973] \<Notice\>: Basic Sockets SetNoSIGPIPE failed errno[22] result[-1] Sep 1 11:09:25 Chain-Zhangs-iPhone locationd[10709] \<Notice\>: loc watchdog expired, count, 1, 3 Sep 1 11:09:25 Chain-Zhangs-iPhone locationd[10709] \<Notice\>: scan result, count, wait, 2, retry, 0, error Sep 1 11:09:25 Chain-Zhangs-iPhone locationd[10709] \<Notice\>: scan result, count, wait, 2, retry, 1, error Sep 1 11:09:25 Chain-Zhangs-iPhone locationd[10709] \<Notice\>: scan result, count, wait, 2, retry, 2, error Sep 1 11:09:27 Chain-Zhangs-iPhone locationd[10709] \<Notice\>: Fence: loc watchdog cancel, count, 2, 3, client, 0x0 Sep 1 11:09:31 Chain-Zhangs-iPhone kernel[0] \<Notice\>: 465394.295947 wlan0.A[67842] AppleBCMWLANCore::dumpWmeCounters(): per AC tx counters: 1835211 210212 2938849 70271, rx counters: 8475753 22805 6 3396 Sep 1 11:09:31 Chain-Zhangs-iPhone kernel[0] \<Notice\>: 465394.296003 wlan0.A[67843] AppleBCMWLANCore::dumpWmeCounters(): AWDL: Tx 175 0 0 0 Rx: 148 0 0 0 Sep 1 11:09:38 Chain-Zhangs-iPhone assistant\_service[10804] \<Warning\>: Error getting NanoAppRegistry workspace info: Error Domain=NSCocoaErrorDomain Code=4099 "操作を完了できませんでした。(Cocoa エラー 4099。)" (The connection to service named com.apple.nanoappregistry.workspace was invalidated.) UserInfo=0x14d6efb0 {NSDebugDescription=The connection to service named com.apple.nanoappregistry.workspace was invalidated.} Sep 1 11:09:44 Chain-Zhangs-iPhone locationd[10709] \<Notice\>: need a scan, count, 0, 0, lwatchdog, 0.0, interval, 60.0, needWatchdog, 0 Sep 1 11:09:44 Chain-Zhangs-iPhone locationd[10709] \<Notice\>: scan result, count, wait, 0, retry, 0, error Sep 1 11:09:51 Chain-Zhangs-iPhone kernel[0] \<Notice\>: 465414.420355 wlan0.A[67844] AppleBCMWLANCore::dumpWmeCounters(): per AC tx counters: 1835281 210212 2938924 70273, rx counters: 8475891 22805 6 3396 Sep 1 11:09:51 Chain-Zhangs-iPhone kernel[0] \<Notice\>: 465414.420428 wlan0.A[67845] AppleBCMWLANCore::dumpWmeCounters(): AWDL: Tx 175 0 0 0 Rx: 148 0 0 0 Sep 1 11:09:52 Chain-Zhangs-iPhone syncdefaultsd[10779] \<Notice\>: (Note ) marked "com.me.keyvalueservice" topic as "opportunistic" on \<APSConnection: 0x15e2a5e0\> Sep 1 11:09:54 Chain-Zhangs-iPhone kire-ios[10805] \<Warning\>: ERROR: network request failed:

Could you office networking be blocking it?  Also what is the address you’re trying to connect to?

Rob

The address I’m trying to access is:

https://kire.firebaseio.com/game.json?auth=\<JWT token\>

I think the network is not blocking because the connection works on both corona simulator and iOS simulator.

Do you have any idea?

When you’re using the Corona simulator or the Xcode simulator, is your laptop/desktop on the same WiFi network or are you hardwired in? Could your Mac have some proxy setup it’s bouncing through that your iPhone might not be?

Could you office networking be blocking it?  Also what is the address you’re trying to connect to?

Rob

The address I’m trying to access is:

https://kire.firebaseio.com/game.json?auth=\<JWT token\>

I think the network is not blocking because the connection works on both corona simulator and iOS simulator.

Do you have any idea?

When you’re using the Corona simulator or the Xcode simulator, is your laptop/desktop on the same WiFi network or are you hardwired in? Could your Mac have some proxy setup it’s bouncing through that your iPhone might not be?