You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2020/01/03 12:48:38 UTC

[GitHub] [cordova-ios] ctaque opened a new issue #759: Some requests are failing with error NSURLConnection finished with error - code -1015

ctaque opened a new issue #759: Some requests are failing with error NSURLConnection finished with error - code -1015
URL: https://github.com/apache/cordova-ios/issues/759
 
 
   <!--
   Please have a look at the issue templates you get when you click "New issue" in the GitHub UI.
   We very much prefer issues created by using one of these templates.
   -->
   
   ### Issue Type
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [ ] Bug Report
   - [ ] Feature Request
   - [x] Support Question
   
   ## Description
   Some request from the app are failing : "NSURLConnection finished with error - code -1015"
   
   Case:
   If have have an app, witch from the index redirects to a website.
   in this website, there is a script which loads a payment form on a specific page (hipay sdk js)
   this script, should create for each form field an iframe with the field.
   
   debug: 
   Emulate the app with xcode, open device inspector in safari
   
   What I see : 
   
   Sometimes some fields load correctly but most of the time, they all fails to load with theses errors : 
   is safari console : "Failed to load resource: cannot decode raw data" at the urls pointing to 
   "libs.hipay.com/hostedfields/index.html#type=card&element=value&instanceId=value"
   in xcode console: "NSURLConnection finished with error - code -1015"
   
   
   
   ## Information
   <!-- Include all relevant information that might help understand and reproduce the problem -->
   
   ### 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? -->
   
   Environment iphone 6s 12.1 & 13 (unknown with other versions)
   Platform ios only
   
   
   ### 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 platform ios version 5.0.1 & 5.1.1
   Cordova version 9.0.0
   
   
   
   ## Checklist
   <!-- Please check the boxes by putting an `x` in the `[ ]` like so: `[x]` -->
   
   - [x] I searched for already existing GitHub issues about this
   - [x] I updated all Cordova tooling to their 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


With regards,
Apache Git Services

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


[GitHub] [cordova-ios] vagnersabadi commented on issue #759: Some requests are failing with error NSURLConnection finished with error - code -1015

Posted by GitBox <gi...@apache.org>.
vagnersabadi commented on issue #759: Some requests are failing with error NSURLConnection finished with error - code -1015
URL: https://github.com/apache/cordova-ios/issues/759#issuecomment-582019184
 
 
   Try it
   https://stackoverflow.com/questions/54704207/the-ios-simulator-deployment-targets-is-set-to-7-0-but-the-range-of-supported-d
   

----------------------------------------------------------------
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


With regards,
Apache Git Services

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


[GitHub] [cordova-ios] breautek commented on issue #759: Some requests are failing with error NSURLConnection finished with error - code -1015

Posted by GitBox <gi...@apache.org>.
breautek commented on issue #759: Some requests are failing with error NSURLConnection finished with error - code -1015
URL: https://github.com/apache/cordova-ios/issues/759#issuecomment-581625878
 
 
   `Cannot decode raw data` generally means that the server sent something that is unexpected, or not supported by iOS.
   
   https://developer.apple.com/documentation/foundation/1508628-url_loading_system_error_codes/nsurlerrorcannotdecoderawdata?language=objc
   
   I see this often when the content is gzipped, which the safari implementation appears to have buggy support for. If possible, I'd try to disable gzip encoding on the server, to at least confirm that this is the issue.

----------------------------------------------------------------
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


With regards,
Apache Git Services

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


[GitHub] [cordova-ios] vagnersabadi commented on issue #759: Some requests are failing with error NSURLConnection finished with error - code -1015

Posted by GitBox <gi...@apache.org>.
vagnersabadi commented on issue #759: Some requests are failing with error NSURLConnection finished with error - code -1015
URL: https://github.com/apache/cordova-ios/issues/759#issuecomment-581621108
 
 
   I am also facing this problem.
   When running in test mode with **ionic cordova run ios -l** it runs smoothly, but when I compile and run it through xocde a white screen occurs
   
   ![Captura de Tela 2020-02-03 às 18 13 52](https://user-images.githubusercontent.com/12532889/73691353-f2357700-46b0-11ea-9062-e9e6b92dd620.png)
   

----------------------------------------------------------------
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


With regards,
Apache Git Services

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


[GitHub] [cordova-ios] breautek edited a comment on issue #759: Some requests are failing with error NSURLConnection finished with error - code -1015

Posted by GitBox <gi...@apache.org>.
breautek edited a comment on issue #759: Some requests are failing with error NSURLConnection finished with error - code -1015
URL: https://github.com/apache/cordova-ios/issues/759#issuecomment-581625878
 
 
   `Cannot decode raw data` generally means that the server sent something that is unexpected, or not supported by iOS.
   
   https://developer.apple.com/documentation/foundation/1508628-url_loading_system_error_codes/nsurlerrorcannotdecoderawdata?language=objc
   
   I see this often when the content is gzipped, which the safari implementation appears to have [buggy support](https://www.google.com/search?q=ios+cannot+decode+raw+data+gzip+content&oq=ios+cannot+decode+raw+data+gzip+content&aqs=chrome..69i57j33l2.6755j1j7&sourceid=chrome&ie=UTF-8) for. If possible, I'd try to disable gzip encoding on the server, to at least confirm that this is the issue.

----------------------------------------------------------------
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


With regards,
Apache Git Services

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