Log out and log in as a different user with subsequent opening a synced (non-global) Realm via asyncOpen.
Expected Results
Be able to switch a user and successfully open a realm asynchronously.
Actual Results
Error Domain=io.realm.sync Code=4 "Cannot asynchronously open synced Realm, because the associated session previously experienced a fatal error" UserInfo={NSLocalizedDescription=Cannot asynchronously open synced Realm, because the associated session previously experienced a fatal error}
This error seems to be introduced some versions ago when RLMRealm.mm was updated.
Steps to Reproduce
Logout current user
Login as another user
Open a (non-global) Realm asynchronously
Code Sample
Issue seems similar to #214 despite it has already been closed by @dhmspector.
Properly logging out with SyncUser.current?.logOut() does not make any difference.
Error occurs after successful logging and opening a Realm:
Realm.asyncOpen(configuration: config) { realm, error in
print(error)
}
Goals
Log out and log in as a different user with subsequent opening a synced (non-global) Realm via
asyncOpen
.Expected Results
Be able to switch a user and successfully open a realm asynchronously.
Actual Results
Error Domain=io.realm.sync Code=4 "Cannot asynchronously open synced Realm, because the associated session previously experienced a fatal error" UserInfo={NSLocalizedDescription=Cannot asynchronously open synced Realm, because the associated session previously experienced a fatal error}
This error seems to be introduced some versions ago when
RLMRealm.mm
was updated.Steps to Reproduce
Code Sample
Issue seems similar to #214 despite it has already been closed by @dhmspector.
Properly logging out with
SyncUser.current?.logOut()
does not make any difference.Error occurs after successful logging and opening a Realm:
Version of Realm and Tooling