Hello. I have an issue using Ktor library for iOS ...
# multiplatform
o
Hello. I have an issue using Ktor library for iOS platform running the app in iOS simulator , The application is failing to complete the user login process, resulting in a “The network connection was lost.” error (NSURLErrorDomain Code=-1005). The error occurs immediately following an attempt to post credentials to the Supabase authentication endpoint. The underlying network logs indicate a loss of connection during the request transmission. Does anyone know how to solve this? Thanks you
Copy code
NSErrorFailingURLStringKey=<https://xxxxx.supabase.co/auth/v1/token?grant_type=password>, NSErrorFailingURLKey=<https://xxxxx.supabase.co/auth/v1/token?grant_type=password>, _kCFStreamErrorDomainKey=4})
HttpClient: REQUEST <https://xxxxx.supabase.co/auth/v1/token?grant_type=password> failed with exception: io.ktor.client.engine.darwin.DarwinHttpRequestException: Exception in http request: Error Domain=NSURLErrorDomain Code=-1005 "The network connection was lost." UserInfo={_kCFStreamErrorCodeKey=-4, NSUnderlyingError=0x600000c1e1f0 {Error Domain=kCFErrorDomainCFNetwork Code=-1005 "(null)" UserInfo={NSErrorPeerAddressKey=<CFData 0x6000021447d0 [0x1e6ebb4f0]>{length = 16, capacity = 16, bytes = 0x100201bb6812260a0000000000000000}, _kCFStreamErrorCodeKey=-4, _kCFStreamErrorDomainKey=4}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <5B544CA0-FFB4-4F50-A096-4BA939077805>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalDataTask <5B544CA0-FFB4-4F50-A096-4BA939077805>.<1>"
), NSLocalizedDescription=The network connection was lost., NSErrorFailingURLStringKey=https:/xxxxx.supabase.co/auth/v1/token?grant_type=password, NSErrorFailingURLKey=<https://xxxxx.supabase.co/auth/v1/token?grant_type=password>, _kCFStreamErrorDomainKey=4}