ios - NSURLConnection/CFURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9843) -
ios - NSURLConnection/CFURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9843) -
i'm trying app in testing environment, , app have feature open url in webview, testing, files url in production db come amazon , have format:
self.url = @"https://media.akdemia.com.s3.amazonaws.com/production//uploads/report_notification/report/3827/corte_de_notas_de-quinto_a_o_de_ciencias_a.pdf?awsaccesskeyid=akiai2r6dmwpfkjpdvwq&signature=wwq2kctvsola/sc/xit108xf8/0%3d&expires=1447112397"
i can't open by
nsurl *myurl = [nsurl urlwithstring:self.url]; nsurlrequest *myrequest = [nsurlrequest requestwithurl:myurl]; [self.webview loadrequest:myrequest];
isn't mutual url , console print error: nsurlconnection/cfurlconnection http load failed (kcfstreamerrordomainssl, -9843)
hope can help me, in advance.
edit (extra info)
in app exists reports list , when request api url of each report, generated urls list.
if request urls console generate same url distinct expires numbers each url , of url works correctly, while if print json api returns app can see urls (no matter study belongs) have same expires number. don't know if can impact url , no works.
i resolved issue, i'm using ruby on rails api implementation, , changed fog , carrierwave gem version 1.9.0 , 0.10.0 on gemfile (you have run bundle install update).
using same fog_credentials
config.fog_credentials = { :provider => 'aws', # required :aws_access_key_id => 'akiai2r6dmwpfkjpdvwq', # required :aws_secret_access_key => 'dns8h7hded3nucta5ffgwaujsxqaev+faji/pt7p', # required } config.fog_directory = 'media.akdemia.com' # required config.fog_public = false config.cache_dir = "#{rails.root}/tmp/uploads" config.fog_authenticated_url_expiration = 1.year config.storage = :fog
and api generates urls correctly https://s3.amazonaws.com/media.akdemia.com/production/.... instead of https://media.akdemia.com.s3.amazonaws.com/production/....
thanks guys @kampai , @pbasdf helpful find solution
ios uiwebview nsurlconnection
Comments
Post a Comment