Я работаю в приложении для iOS, а для базы данных использую Firestore.Мое приложение работало нормально.Но внезапно я запускаю приложение, а затем получаю какую-то ошибку подключения, когда пытаюсь получить данные из Firestore.
Это мой код выборки данных из Firestore:
let docRef = Firestore.firestore().db.collection("Root").document(UserDefaults.standard.value(forKey: Constants.liveOrDevKey) as! String).collection("Users_Consumers").document((Auth.auth().currentUser?.uid)!).collection((Auth.auth().currentUser?.uid)!).document("UserOnboarding")
docRef.getDocument { (document, error) in
print(document)
if (document?.exists)! {
let dataDescription = document?.data().map(String.init(describing:)) ?? ["nil"]
print("Document data: \(dataDescription)")
isExist(true)
} else {
print("Document does not exist:\(error.debugDescription)")
isExist(false)
}
}
Ошибка:
2018-10-10 15:01:45.160452+0530 Food[1466:84379] [BoringSSL] Function nw_protocol_boringssl_input_finished: line 1386 Peer disconnected during the middle of a handshake. Sending errSSLFatalAlert(-9802) alert
2018-10-10 15:01:52.465256+0530 Food[1466:84379] TIC TCP Conn Failed [1:0x11be82750]: 3:-9802 Err(-9802)
2018-10-10 15:01:53.004445+0530 Food[1466:84073] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
2018-10-10 15:01:53.008669+0530 Food[1466:84073] [MC] Reading from public effective user settings.
2018-10-10 15:01:53.134153+0530 Food[1466:84604] Missing server connection for kCTConnectionInvalidatedNotification
E1010 15:01:53.215952000 6168145920 ev_epollex_linux.cc:1482] Skipping epollex becuase GRPC_LINUX_EPOLL is not defined.
E1010 15:01:53.216533000 6168145920 ev_epoll1_linux.cc:1261] Skipping epoll1 becuase GRPC_LINUX_EPOLL is not defined.
E1010 15:01:53.216555000 6168145920 ev_epollsig_linux.cc:1761] Skipping epollsig becuase GRPC_LINUX_EPOLL is not defined.