question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to load webpage with error: The operation couldn’t be completed. (NSURLErrorDomain error -999.)

See original GitHub issue

Bug Report

Problem

The application screen keeps white.

What is expected to happen?

Load the contents of index.html

What does actually happen?

The application screen continues white.

Information

2019-05-06 16:29:37.710 MyApp[1690:710338] Apache Cordova native platform version 5.0.0 is starting.
2019-05-06 16:29:37.715 MyApp[1690:710338] Multi-tasking -> Device: YES, App: YES
2019-05-06 16:29:37.863 MyApp[1690:710338] Using UIWebView
2019-05-06 16:29:37.868 MyApp[1690:710338] [CDVTimer][console] 0.318050ms
2019-05-06 16:29:37.869 MyApp[1690:710338] [CDVTimer][handleopenurl] 0.393987ms
2019-05-06 16:29:37.876 MyApp[1690:710338] Unlimited access to network resources
2019-05-06 16:29:37.877 MyApp[1690:710338] [CDVTimer][intentandnavigationfilter] 7.097006ms
2019-05-06 16:29:37.877 MyApp[1690:710338] [CDVTimer][gesturehandler] 0.385046ms
2019-05-06 16:29:37.917 MyApp[1690:710338] [CDVTimer][splashscreen] 38.825035ms
2019-05-06 16:29:37.946 MyApp[1690:710338] [CDVTimer][statusbar] 28.538942ms
2019-05-06 16:29:37.948 MyApp[1690:710338] [CDVTimer][diagnostic] 1.608968ms
2019-05-06 16:29:37.953 MyApp[1690:710338] [CDVTimer][diagnostic_location] 4.774094ms
2019-05-06 16:29:37.958 MyApp[1690:710338] [CDVTimer][diagnostic_bluetooth] 4.623890ms
2019-05-06 16:29:37.959 MyApp[1690:710338] [CDVTimer][diagnostic_wifi] 0.315905ms
2019-05-06 16:29:37.960 MyApp[1690:710338] [CDVTimer][diagnostic_camera] 0.299931ms
2019-05-06 16:29:37.960 MyApp[1690:710338] [CDVTimer][diagnostic_notifications] 0.401020ms
2019-05-06 16:29:37.962 MyApp[1690:710338] [CDVTimer][diagnostic_microphone] 1.116037ms
2019-05-06 16:29:37.982 MyApp[1690:710338] [CDVTimer][diagnostic_contacts] 19.749999ms
2019-05-06 16:29:37.983 MyApp[1690:710338] [CDVTimer][diagnostic_calendar] 0.313044ms
2019-05-06 16:29:37.983 MyApp[1690:710338] [CDVTimer][diagnostic_reminders] 0.355959ms
2019-05-06 16:29:38.016 MyApp[1690:710338] [CDVTimer][diagnostic_motion] 32.029033ms
2019-05-06 16:29:38.019 MyApp[1690:710338] [CDVTimer][keyboard] 2.551079ms
2019-05-06 16:29:38.019 MyApp[1690:710338] [CDVTimer][TotalPluginStartup] 151.534081ms
2019-05-06 16:29:39.024 MyApp[1690:710338] Resetting plugins due to page load.
2019-05-06 16:29:39.109 MyApp[1690:710338] Failed to load webpage with error: The operation couldn’t be completed. (NSURLErrorDomain error -999.)
2019-05-06 16:29:39.110 MyApp[1690:710338] Resetting plugins due to page load.
2019-05-06 16:29:40.957 MyApp[1690:710338] Finished load of: file:///var/containers/Bundle/Application/5BE9A2ED-2AAE-4D87-8676-D4AED809B626/MyApp.app/www/index.html

Command or Code

just run under these versions

Environment, Platform, Device

iPad iOS 9.3.5

Version information

$ cordova -v 9.0.0 $ ionic --version 4.10.3 “cordova-ios”: “5.0.0” “@ionic/v1-toolkit”: “^1.0.22”

Checklist

  • I searched for existing GitHub issues
  • I updated all Cordova tooling to most recent version
  • I included all the necessary information above

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:14 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
MiguelGonzalezAravenacommented, Sep 9, 2019

I’m having this issue too. This is the ionic info:

Ionic:

   Ionic CLI          : 5.2.7
   Ionic Framework    : ionic-angular 3.9.8
   @ionic/app-scripts : 3.2.4

Cordova:

   Cordova CLI       : 9.0.0 (cordova-lib@9.0.1)
   Cordova Platforms : android 8.0.0, browser 5.0.4, ios 5.0.1
   Cordova Plugins   : no whitelisted plugins (17 plugins total)

Utility:

   cordova-res : 0.6.0 
   native-run  : not installed

System:

   ios-deploy : 1.9.2
   ios-sim    : 8.0.2
   NodeJS     : v10.16.0 (/usr/local/bin/node)
   npm        : 6.11.3
   OS         : macOS Mojave
   Xcode      : Xcode 10.3 Build version 10G8

This is Xcode console:

2019-09-09 16:21:42.486419-0300 Admisión UV[16087:808447] DiskCookieStorage changing policy from 2 to 0, cookie file: file:///Users/observatoriotui-mini/Library/Developer/CoreSimulator/Devices/4FA45ED1-0DDE-41B9-960D-801994B48A10/data/Containers/Data/Application/E3235C5A-E71E-41B8-98EF-7F6DB799A9AC/Library/Cookies/com.MGA.admisionuv.binarycookies
2019-09-09 16:21:42.595609-0300 Admisión UV[16087:808447] Apache Cordova native platform version 5.0.1 is starting.
2019-09-09 16:21:42.596656-0300 Admisión UV[16087:808447] Multi-tasking -> Device: YES, App: YES
2019-09-09 16:21:42.657228-0300 Admisión UV[16087:808447] Using UIWebView
2019-09-09 16:21:42.659805-0300 Admisión UV[16087:808447] [CDVTimer][console] 0.074983ms
2019-09-09 16:21:42.660274-0300 Admisión UV[16087:808447] [CDVTimer][handleopenurl] 0.321984ms
2019-09-09 16:21:42.662034-0300 Admisión UV[16087:808447] Unlimited access to network resources
2019-09-09 16:21:42.662200-0300 Admisión UV[16087:808447] [CDVTimer][intentandnavigationfilter] 1.803994ms
2019-09-09 16:21:42.662394-0300 Admisión UV[16087:808447] [CDVTimer][gesturehandler] 0.081897ms
2019-09-09 16:21:42.662486-0300 Admisión UV[16087:808447] [CDVTimer][TotalPluginStartup] 2.809048ms
2019-09-09 16:21:43.322620-0300 Admisión UV[16087:808447] Resetting plugins due to page load.
2019-09-09 16:21:43.430376-0300 Admisión UV[16087:808447] Failed to load webpage with error: The operation couldn’t be completed. (NSURLErrorDomain error -999.)
2019-09-09 16:21:43.445365-0300 Admisión UV[16087:808447] Resetting plugins due to page load.
2019-09-09 16:21:44.611308-0300 Admisión UV[16087:808447] Finished load of: file:///Users/observatoriotui-mini/Library/Developer/CoreSimulator/Devices/4FA45ED1-0DDE-41B9-960D-801994B48A10/data/Containers/Bundle/Application/C97CFD5A-4D65-4E7F-B6E0-E9A7D299427E/Admisio%CC%81n%20UV.app/www/index.html

Here is a preview: iOS Emulator preview

2reactions
mluiscommented, Jul 1, 2019

@timbru31 it seems reinstalling the cordova-plugin-ionic-webview solved it for me. Many Thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ionic failed to load webpage with error: The operation couldn't ...
From the error code "999", it looks like you are loading or reloading a second url before the UIWebView finished loading the first...
Read more >
NSURLErrorDomain error -999, App s… - Apple Developer
I have created an ios app using Ionic framework. it runs well on browser. and also ionic Cordova emulate -l runs well. but...
Read more >
Not able to launch iOS app due to Failed to load webpage ...
While installing build in iOS I am getting an issue like Failed to load webpage with error: The operation couldn't be completed.
Read more >
FileTransfer Upload: Failed to load webpage with error: The ...
"Failed to load webpage with error: The operation couldn't be completed. (NSURLErrorDomain error -999.)" All the aspx page does is send me an ......
Read more >
Failed To Load Webpage With Error: The Operation Couldn't ...
Failed To Load Webpage With Error: The Operation Couldn't Be Completed. (Nsurlerrordomain Error -999.) Cordova Ios. I'm trying to load a image from...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found