You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/03/03 19:43:42 UTC

[GitHub] [cordova-plugin-inappbrowser] adamdport opened a new issue #855: Error not logged or caught, didFailProvisionalLoadForFrame code = 102

adamdport opened a new issue #855:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/855


   # Bug Report
   When trying to load a PDF in iOS, the inappbrowser just showed a blank white page. I added an event listener for 'loaderror' but it was never called. I noticed in the XCode logs that it was throwing `didFailProvisionalLoadForFrame code = 102`. I ultimately discovered that the mimetype of the pdf response was incorrect (`application/octet-stream` instead of `application/pdf`) but the debugging experience should be improved
   
   ### What is expected to happen?
   InAppBrowser should catch that error and throw it in the `loaderror` event
   
   ### What does actually happen?
   I just see a blank white page and no debug information outside of xcode
   
   ## Information
   <!-- Include all relevant information that might help understand and reproduce the problem -->
   
   2021-03-03 14:40:32.475590-0500 MyApp[84143:3442282] [Process] 0x7fcfec057a20 - [pageProxyID=20, webPageID=21, PID=85174] WebPageProxy::didFailProvisionalLoadForFrame: frameID = 3, domain = WebKitErrorDomain, code = 102
   2021-03-03 14:40:32.475801-0500 MyApp[84143:3442282] webView:didFailProvisionalNavigation - 102: Frame load interrupted
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you experiencing the issue? -->
   cordova-ios@6.2.0
   cordova-plugin-inappbrowser@5.0.0
   ios@14.4
   
   made using a CORS request (if that matters)
   
   
   ### Version information
   <!-- 
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins 
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   Cordova CLI @10.0.0
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org