socketio / socket.io-client-swift

Other
5.22k stars 843 forks source link

Could not connect to server #1429

Open Vigneshkumarzx opened 2 years ago

Vigneshkumarzx commented 2 years ago

@nuclearace when I try to chat with another id , first time its was emit and listen normally after that its was shown below and also in android it was worked fine ..

NSLocalizedDescription=Could not connect to the server., NSErrorFailingURLStringKey=https://demo1.something.com:8011/socket.io/?transport=polling&b64=1, NSErrorFailingURLKey=https://demo1. something.com:8011/socket.io/?transport=polling&b64=1, _kCFStreamErrorDomainKey=1}

Vigneshkumarzx commented 2 years ago

Here is the log

2022-10-01 12:48:39.508224+0530 Something[12913:3186507] [tcp] tcp_input [C27.1.1:3] flags=[R] seq=3205387877, ack=0, win=0 state=LAST_ACK rcv_nxt=3205387877, snd_una=1748991604 2022-10-01 12:48:39.508421+0530 Something[12913:3186507] [tcp] tcp_input [C27.1.1:3] flags=[R] seq=3205387877, ack=0, win=0 state=CLOSED rcv_nxt=3205387877, snd_una=1748991604 2022-10-01 12:48:39.508512+0530 Something[12913:3186507] [tcp] tcp_input [C25.1.1.1:3] flags=[R] seq=812753516, ack=0, win=0 state=LAST_ACK rcv_nxt=812753516, snd_una=3056581530 2022-10-01 12:48:39.508647+0530 Something[12913:3186507] [tcp] tcp_input [C25.1.1.1:3] flags=[R] seq=812753516, ack=0, win=0 state=CLOSED rcv_nxt=812753516, snd_una=3056581530 2022-10-01 12:48:39.509447+0530 Something[12913:3186507] [tcp] tcp_input [C29.1.1:3] flags=[R.] seq=0, ack=1950289057, win=0 state=SYN_SENT rcv_nxt=0, snd_una=1950289056 2022-10-01 12:48:39.512567+0530 Something[12913:3186507] Connection 29: received failure notification 2022-10-01 12:48:39.512624+0530 Something[12913:3186507] Connection 29: failed to connect 1:61, reason -1 2022-10-01 12:48:39.512660+0530 Something[12913:3186507] Connection 29: encountered error(1:61) 2022-10-01 12:48:39.513100+0530 Something[12913:3186507] Task .<5> HTTP load failed, 318/0 bytes (error code: -1004 [1:61]) 2022-10-01 12:48:39.513488+0530 Something[12913:3186507] Task .<5> finished with error [-1004] Error Domain=NSURLErrorDomain Code=-1004 "Could not connect to the server." UserInfo={_kCFStreamErrorCodeKey=61, NSUnderlyingError=0x281a5e0a0 {Error Domain=kCFErrorDomainCFNetwork Code=-1004 "(null)" UserInfo={_kCFStreamErrorDomainKey=1, _kCFStreamErrorCodeKey=61, NSErrorPeerAddressKey=<CFData 0x28374fbb0 [0x1e86b63a0]>{length = 16, capacity = 16, bytes = 0x10021f4b22d12fef0000000000000000}, _NSURLErrorNWPathKey=satisfied (Path is satisfied), interface: en0, ipv4, dns}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask .<5>, _NSURLErrorRelatedURLSessionTaskErrorKey=( "LocalDataTask .<5>" ), NSLocalizedDescription=Could not connect to the server., NSErrorFailingURLStringKey=https://demo1. Something.com:8011/socket.io/?transport=polling&b64=1&sid=MSKtGBgKy7FLFKg8AAAQ, NSErrorFailingURLKey=https://demo1.Something.com:8011/socket.io/?transport=polling&b64=1&sid=MSKtGBgKy7FLFKg8AAAQ, _kCFStreamErrorDomainKey=1}