I am getting NSURLSession error for code -1005 for...
# ktor
r
I am getting NSURLSession error for code -1005 for iOS target only. We are using 2.1.1 version of ktor. We are using
ktor-darwin
for IOS I tried looking over the internet, but no progress over there
Copy code
io.ktor.client.engine.darwin.DarwinHttpRequestException: Exception in http request: Error Domain=NSURLErrorDomain Code=-1005 "The network connection was lost." UserInfo={_kCFStreamErrorCodeKey=-4, NSUnderlyingError=0x600000d325e0 {Error Domain=kCFErrorDomainCFNetwork Code=-1005 "(null)" UserInfo={NSErrorPeerAddressKey=<CFData 0x60000217b9d0 [0x1e9a4a918]>{length = 16, capacity = 16, bytes = 0x100223827f0000010000000000000000}, _kCFStreamErrorCodeKey=-4, _kCFStreamErrorDomainKey=4}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <D3B44DBD-53E2-47DF-8246-674D848EFCD2>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
  "LocalDataTask <D3B44DBD-53E2-47DF-8246-674D848EFCD2>.<1>"
), NSLocalizedDescription=The network connection was lost.,
a
You may try restarting the simulator if you use one.