SSL error when making SKProductsRequest

I'm making an `SKProductsRequest` from my macOS app. (I'm running the latest macOS, 10.14.5)


The request always comes back with the following error:


Error Domain=NSURLErrorDomain Code=-1200 "An SSL error has occurred and a secure connection to the server cannot be made." UserInfo={NSErrorFailingURLStringKey=https://sandbox.itunes.apple.com/bag.xml?ix=6, NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?, _kCFStreamErritunes.apple.com/bag.xml?ix=6, _kCFStreamErrorCodeKey=-9816, NSLocalizedDescription=An SSL error has occurred and a secure connection to the server cannot be made.}

I'm not sure what's going wrong here. Any help or insights would be appreciated.

Accepted Reply

This issue was due to a sandbox outage as mentioned in https://forums.developer.apple.com/thread/119273


When the outage was resolved, the issue went away.

Replies

Getting a similar error when retrieving sandbox products:


Error Domain=NSURLErrorDomain Code=-1200 "Cannot connect to iTunes Store" UserInfo={NSUnderlyingError=0x60000138fa20 {Error Domain=kCFErrorDomainCFNetwork Code=-1200 "(null)" UserInfo={_kCFStreamPropertySSLClientCertificateState=0, _kCFNetworkCFStreamSSLErrorOriginalValue=-9816, _kCFStreamErrorDomainKey=3, _kCFStreamErrorCodeKey=-9816}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <420DF395-9643-445C-BC9B-026E96FBAAD3>.<27>, NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?, _kCFStreamErrorCodeKey=-9816, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalDataTask <420DF395-9643-445C-BC9B-026E96FBAAD3>.<27>"
), NSLocalizedDescription=Cannot connect to iTunes Store, NSErrorFailingURLStringKey=https://sandbox.itunes.apple.com/bag.xml?ix=6&os=12&locale=en_US, _kCFStreamErrorDomainKey=3, NSErrorFailingURLKey=https://sandbox.itunes.apple.com/bag.xml?ix=6&os=12&locale=en_US}


Live app works fine, sandbox does not.

This issue was due to a sandbox outage as mentioned in https://forums.developer.apple.com/thread/119273


When the outage was resolved, the issue went away.