Open deckyfx opened 3 weeks ago
➤ PM Bot commented:
Jira ticket: RJS-2785
In our current main
branch, we have the following tests: https://github.com/realm/realm-js/blob/main/integration-tests/tests/src/tests/sync/sync-session.ts#L625-L644
I suggest you to upgrade to a recent version (for example v12.6.0), and if the issue is still observed, please let us know.
using 12.6.2
Realm.App.Sync.getSyncSession
yield null
while Realm.App.Sync.getAllSyncSessions
yield {"weakInternal": {Symbol(Realm.WeakSyncSession.external_pointer): {}}}
@kneth We are also getting the same error in the syncError when we close the app and reopen the app again. But if we logout and login again there is no more error.
const syncConfigWithErrorHandling = { flexible: true, onError: (_session, error) => { console.log(error); }, }; function RealmWithErrorHandling() { return (
); }
I have upgraded to 12.7.1 latest and the issue is still same. we are getting weakInternal error.
In https://github.com/realm/realm-js/pull/6637 we are reworking how getSyncSession()
is implemented due to a refactoring in Realm Core. I hope it will solve the issue.
How frequently does the bug occur?
Always
Description
I have this piece of code
the output is this
As you can see, the same partition value and user, used in getSyncSession yield null, yet if I resolve it via getAllSyncSessions, it is exsist
Stacktrace & log output
Can you reproduce the bug?
Always
Reproduction Steps
Realm.App.Sync.getSyncSession
Version
^11.10.2
What services are you using?
Both Atlas Device Sync and Atlas App Services
Are you using encryption?
Yes
Platform OS and version(s)
WSL2 on Windows 11
Build environment
Which debugger for React Native: ..
Cocoapods version
-