Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

finished with error - code: -1009 when internet there is no connection

We are using Google SDKs like SignIn,maps and Analytics. Facebook SDK for signIn. Alamofire and ObjectMapper for Networking and JSON parsing. Realm for DB.

When there is no internet connection I am getting following error on console. I have verified these are not our App Errors .

TIC TCP Conn Failed [45:0x1c8178240]: 1:50 Err(50) Task <293866EE-82E6-4740-AEAF-83A1BB11E98A>.<1> HTTP load failed (error code: -1009 )

Can anyone explain which framework is logging this error.

like image 449
AppleBee Avatar asked Oct 28 '22 21:10

AppleBee


1 Answers

-1009 is actually NSURLErrorNotConnectedToInternet from here

The log is coming from OS and you can turn it off if you set OS_ACTIVITY_MODE environment variable to disable

Product -> Scheme -> Edit Scheme -> Run -> Arguments -> Environment Variables
like image 81
muvaaa Avatar answered Nov 15 '22 05:11

muvaaa