NSURLConnection Error

What is "Domain Error = NSURLErrorDomain Code = -1020 UserInfo = 0x1694a0" The operation could not be completed. (Error NSURLErrorDomain -1020.) "" Due to

+3
source share
3 answers

The error codes you get from NSURLConnection are in NSURLError.hand CFNetworkErrors.h, as well as this Apple documentation . It looks like -1020 kCFURLErrorDataNotAllowed, which says:

"Failed to connect because the device is not allowed to use data.

+3
source

It cannot decode data ...

0
source

, -1020.:(.

typedef enum
{

   NSURLErrorBadServerResponse = -1011,

   NSURLErrorUserCancelledAuthentication = -1012,

   NSURLErrorUserAuthenticationRequired = -1013,

   NSURLErrorZeroByteResource = -1014,

   NSURLErrorCannotDecodeRawData = -1015,

   NSURLErrorCannotDecodeContentData = -1016,

   NSURLErrorCannotParseResponse = -1017,
}

, ?

-2

Source: https://habr.com/ru/post/1742964/


All Articles