2 Replies
      Latest reply on Jan 14, 2020 8:34 AM by mohanas
      mohanas Level 1 Level 1 (0 points)

        I get below error on iPhones using T-Mobile network when mobile data is enabled.

        iPhone using other service providers like Verizon does not encounter this issue. No issue is observed when connecting to WiFi as well.

         

        handleStreamError::UnderlyingError.domain=NSPOSIXErrorDomain, error.code=50, error.description=Error Domain=NSPOSIXErrorDomain Code=50 Network is down" UserInfo={_kCFStreamErrorCodeKey=50 _kCFStreamErrorDomainKey=1}"

         

        We setup a SOCKS proxy and make network requests by setting SOCKS Proxy as below,

         

        CFReadStreamSetProperty((CFReadStreamRef)readStream, kCFStreamPropertySOCKSProxy, proxyToUse);

         

        Callback set to CFReadStreamSetClient() receives below error on CFReadStreamOpen(),

         

        Inside handleNetworkEvent::kCFStreamEventErrorOccurred calling handleStreamError

        handleStreamError::UnderlyingError.domain=NSPOSIXErrorDomain, error.code=50, error.description=Error Domain=NSPOSIXErrorDomain Code=50 Network is down" UserInfo={_kCFStreamErrorCodeKey=50  _kCFStreamErrorDomainKey=1}"

         

        Above request is made from Notification Extension and it fails. We make a similar request from App side and it works without any issue.

         

        Could someone please help me understand what might be going on here or suggest how to debug this issue further ?

         

        Devices: iPhone XR, iOS 12.x, 13.x