ionic-cli: Failed to load webpage with error: The request timed out.

Hello Ionic team! First of all keep up the good work! You are doing an awesome job!

I have a little problem here. When run ionic run ios without any flags my app runs on a device fine, but when I run ionic run ios -l (with livereload) the app starts but with a plank white screen. I also notice following error in terminal output: (lldb) 2014-10-13 16:49:36.913 myapp[3830:562396] Failed to load webpage with error: The request timed out.

Could you please point me into right direction?

Running: ios-deploy -V: 1.2.0

sw_vers -productVersion: 10.9.5

xcodebuild -version Xcode 6.0.1 Build version 6A317

gcc --version Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Apple LLVM version 6.0 (clang-600.0.51) (based on LLVM 3.5svn) Target: x86_64-apple-darwin13.4.0 Thread model: posix

lldb --version lldb-320.4.124.10

Thanks for your help

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Comments: 30

Most upvoted comments

I got this issue too when I tried to run my app using the -l -c commands:

ionic run ios -l -c

I noticed that this command changes a line in the config.xml file:

// FROM
 <content src="index.html"/>

// TO
 <content src="localhost//192.1.168.0:8000" original-src="index.html"/>

Changing it back to <content src="index.html"/> fixes the issue for me.

hit this issue when I was working on the train … mac was connected to wifi, but device was LTE … tethered mac to device using hotspot and presto … working again…

I had a similar error, it was a WiFi / network issue. I didn’t notice that my phone was on Airplane mode.

2015-06-14 00:47:21.088 demo[412:125164] [CDVTimer][TotalPluginStartup] 255.868018ms
(lldb) 2015-06-14 00:47:21.716 demo[412:125164] Resetting plugins due to page load.
(lldb) 2015-06-14 00:47:21.839 demo[412:125164] Failed to load webpage with error: Could not connect to the server.

Had this issue today. Make sure your phone is connected to the same network as your mac as previously said above.

If anyone stumbled across this error while using the Quasar Framework, like I did - You have to remember to use build mode when starting your app on a real ios device, and not dev mode - so instead of quasar dev -m ios --ide use quasar build -m ios --ide.

sometimes you just have to remove all files and add them again:

cordova platform rm [ios/android]
cordova platform add ...