Lot of errors with CF NETWORK ERROR WITH CODE -1004 & -1003 for ios app

I am logging all network failures in firebase and have seen lot of -1004 and -1003 as below.
CF NETWORK ERROR WITH CODE -1004 ,
CFERROR-1004 => Could not connect to the server.

CF NETWORK ERROR WITH CODE -1003 ,
CFERROR-1003 => server with the specified hostname could not be found.


Not sure reason for these failures. Checked with network team and no issue observed at network level. request received till web server. These errors are highly intermittent.

any clues, where can I check next ?


These errors are highly intermittent.

There are lots of potential causes here. Remember that iOS devices often operate on extremely flaky networks, so it’s completely normal to see a certain level of such errors.

If you want to investigate a specific case, a good first step is to use CFNetwork diagnostic logging to see what’s happening under the bonnet.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"
Lot of errors with CF NETWORK ERROR WITH CODE -1004 & -1003 for ios app
 
 
Q