2 Replies
      Latest reply on Mar 24, 2020 10:15 PM by hkjhkjh
      ben195 Level 1 Level 1 (0 points)

        When running my code on a device that's on iOS 13, I'm getting an error that I'm not seeing on any previous version of iOS. I'm getting: NSURLConnection finished with error - code -1007

         

        The code I'm running is:

        URLSession.shared.dataTask(with: url) { (_, res, _) in
         // Do stuff
        }.resume()

         

        The server responds with a 302 and resolves fine on the previous iOS versions (redirects once and resolves). On iOS 13 it keeps redirecting to the original URL until it says too many redirects.