Bartalog / cool-maze

A quick mobile-to-desktop share capability, through matrix barcode
Apache License 2.0
2 stars 6 forks source link

iOS SSL error when sharing photo from WhatsApp #200

Open Deleplace opened 7 years ago

Deleplace commented 7 years ago
NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9806)
Error calling prelude: Error Domain=NSURLErrorDomain Code=-1200 "An SSL error has occurred and a secure connection to the server cannot be made." UserInfo={NSURLErrorFailingURLPeerTrustErrorKey=<SecTrustRef: 0x17011deb0>, NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?, _kCFStreamErrorDomainKey=3, _kCFStreamErrorCodeKey=-9806, NSErrorPeerCertificateChainKey=(
    "<cert(0x101042600) s: *.appspot.com i: Google Internet Authority G2>",
    "<cert(0x101083c00) s: Google Internet Authority G2 i: GeoTrust Global CA>",
    "<cert(0x101084400) s: GeoTrust Global CA i: Equifax Secure Certificate Authority>"
), NSUnderlyingError=0x17025c2c0 {Error Domain=kCFErrorDomainCFNetwork Code=-1200 "(null)" UserInfo={_kCFStreamPropertySSLClientCertificateState=0, kCFStreamPropertySSLPeerTrust=<SecTrustRef: 0x17011deb0>, _kCFNetworkCFStreamSSLErrorOriginalValue=-9806, _kCFStreamErrorDomainKey=3, _kCFStreamErrorCodeKey=-9806, kCFStreamPropertySSLPeerCertificates=(
    "<cert(0x101042600) s: *.appspot.com i: Google Internet Authority G2>",
    "<cert(0x101083c00) s: Google Internet Authority G2 i: GeoTrust Global CA>",
    "<cert(0x101084400) s: GeoTrust Global CA i: Equifax Secure Certificate Authority>"
)}}, NSLocalizedDescription=An SSL error has occurred and a secure connection to the server cannot be made., NSErrorFailingURLKey=https://cool-maze.appspot.com/new-gcs-urls?filesize=29288&type=image/jpeg&filename=2017-05-08-PHOTO-00020044.jpg&hash=4649b9253ac9a0fcb28622e20acffac5, NSErrorFailingURLStringKey=https://cool-maze.appspot.com/new-gcs-urls?filesize=29288&type=image/jpeg&filename=2017-05-08-PHOTO-00020044.jpg&hash=4649b9253ac9a0fcb28622e20acffac5, NSErrorClientCertificateStateKey=0}
Could not cast value of type 'NSURLError' (0x1b64e3448) to 'NSString' (0x1b64df398).
2017-05-09 16:31:12.888388 CMShare[7931:2732931] Could not cast value of type 'NSURLError' (0x1b64e3448) to 'NSString' (0x1b64df398).
(lldb)
Deleplace commented 7 years ago

Also, because of the cast error ('NSURLError' to 'NSString') the user is not even notified of the failure :( , spinner keeps spinning.