Uploaded image for project: 'Realm JavaScript SDK'
  1. Realm JavaScript SDK
  2. RJS-1039

BadClientFile error message in realm sync after termination

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None

      Goals

      For client apps to be able to recover from a sync termination that has happened in realm when they have unsynced data on their applications.

      Expected Results

      After the sync is recreated I expect that any unsynced changes on client devices are not lost.

      Actual Results

      Currently when this happens it renders the local realms corrupt and the data in not synced to atlas.

      Steps to Reproduce

      • open a realm on the client application
      • go offline
      • add some data to the local realm
      • terminate the sync
      • recreate sync
      • go back online on the client device.
      • Following error message is displayed in realm logs:

      client file not found. The server has forgotten about the client-side file presented by the client. This is likely due to using a synchronized realm after terminating and re-enabling sync. Please wipe the file on the client to resume synchronization.

      { sessionIdent: 7, clientFileIdent: 8170 }

      (ProtocolErrorCode=208)

      The data is therefore lost.

      Version of Realm and Tooling

      • Realm JS SDK Version: 10.1.2
      • Node or React Native: ReactNative
      • Client OS & Version: Macos
      • Which debugger for React Native: Chrome

            Assignee:
            Unassigned Unassigned
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: