Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to handle a manual client reset due to a missing function #6708

Closed
ironage opened this issue Jun 5, 2024 · 1 comment · Fixed by #6709
Closed

Unable to handle a manual client reset due to a missing function #6708

ironage opened this issue Jun 5, 2024 · 1 comment · Fixed by #6709

Comments

@ironage
Copy link
Contributor

ironage commented Jun 5, 2024

How frequently does the bug occur?

Always

Description

When trying to implement a manual client reset handler we call
Realm.App.Sync.initiateClientReset(realmApp, realmPath); as per the docs.

But this produces an error:

/realm/dist/app-services/Sync.js:146
        const success = app.internal.immediatelyRunFileActions(path);
                                     ^

TypeError: app.internal.immediatelyRunFileActions is not a function
    at Sync.initiateClientReset (node_modules/realm/dist/app-services/Sync.js:146:38)
    at errorCallback (test-realm-pbs.js:54:18)
    at onError (test-realm-pbs.js:18:9)
    at Object.errorHandler (node_modules/realm/dist/app-services/SyncSession.js:101:9)

Node.js v21.6.0

This does not occur when using [email protected] which means that this is a regression in recent versions. Likely due to #6637

Stacktrace & log output

No response

Can you reproduce the bug?

Always

Reproduction Steps

No response

Version

12.9.0

What services are you using?

Atlas Device Sync

Are you using encryption?

No

Platform OS and version(s)

macos

Build environment

Which debugger for React Native: ..

Cocoapods version

No response

Copy link

sync-by-unito bot commented Jun 5, 2024

➤ PM Bot commented:

Jira ticket: RJS-2834

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant