Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-1476

Failed to load resource: file:///!gap_exec

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.1.0
    • 2.2.0
    • cordova-ios
    • iOS 6 GM, Safari 6 Web Inspector

    Description

      Whenever I run cordova.exec with an empty command queue, I get this error in the new iOS 6 Web Inspector in Safari:

      file:///!gap_exec Failed to load resource: The requested URL was not found on this server.

      It's caused by this XMLHttpRequest:

      cordova-2.1.0.js (line 974)
      execXhr.open('HEAD', "file:///!gap_exec", true);
      

      Looks like the Obj-C code hears this request as a signal to begin executing the command queue, but it doesn't return a success response, so Web Inspector complains about not being able to load the resource.

      It doesn't seem to affect functionality, but it sure is annoying to have all those "failed to load resource" errors in the console.

      Attachments

        Activity

          People

            agrieve Andrew Grieve
            jfarfel Joseph Farfel
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: