Ian,
My Realm Id is cosyncstoragetest-agmju
The login works fine and I get this log
OK
Feb 05 13:45:38-05:00
57ms
AuthenticationArrow Right Iconlogin
local-userpass
60141f2266abe05ca0f416c5
601d92529daad1506b74f461
The function to open the Realms is this
func initRealms(onCompletion completion: @escaping (Error?) -> Void) {
if let user = self.app.currentUser,
let uid = self.currentUserId {
// open user realm
Realm.asyncOpen(configuration: user.configuration(partitionValue: "user_id=\(uid)")) { result in
switch result {
case .success(let realm):
self.userRealm = realm
Realm.asyncOpen(configuration: user.configuration(partitionValue: "public")) { result in
switch result {
case .success(let realm):
self.publicRealm = realm
completion(nil)
case .failure(let error):
fatalError("Failed to open public realm: \(error)")
}
}
case .failure(let error):
fatalError("Failed to open user realm: \(error)")
}
}
}
}
The output logs from Xcode is this
2021-02-05 13:45:38.003134-0500 CosyncStorageSample[8391:315745] [] nw_protocol_get_quic_image_block_invoke dlopen libquic failed
2021-02-05 13:45:40.709796-0500 CosyncStorageSample[8391:315899] Sync: Connection[1]: Session[1]: client_reset_config = false, Realm exists = true, async open = false, client reset = false
2021-02-05 13:45:40.754705-0500 CosyncStorageSample[8391:315899] Sync: Connection[1]: Connected to endpoint ‘3.210.32.164:443’ (from ‘192.168.86.22:63744’)
2021-02-05 13:47:52.670704-0500 CosyncStorageSample[8391:315899] Sync: Connection[1]: Connection closed due to error
2021-02-05 13:47:52.751124-0500 CosyncStorageSample[8391:315899] Sync: Connection[1]: Connected to endpoint ‘3.210.32.164:443’ (from ‘192.168.86.22:63835’)
Up until this morning, this code worked absolutely fine. It now hangs on the first asyncOpen() and never comes back intermittently, but about 80% of the time.
I have bundled Swift Package Dependencies Realm 10.5.1 and RealmDataBase 10.3.3
I have also tried this on a brand new cluster and application - same problem.
Richard Krueger