Uploaded image for project: 'Realm Cocoa SDK'
  1. Realm Cocoa SDK
  2. RCOCOA-2324

10.49.1 failing to connect to Atlas Device Sync

      Description

      I'm using MongoDB Atlas with Device Sync.
      The bug appear after upgrading after upgrading from Realm v10.49.0 to v10.49.1.

      After launching the app, the sync error RLMSyncErrorClientSessionError is passed into the closure at app.syncManager.errorHandler. The error does not contain any additional details.

      The error is triggered by a RLM_ERR_CONNECTION_CLOSED that's originating here:

      https://github.com/realm/realm-core/blob/4eef991270a5e2161e37e8c227404327ac61f618/src/realm/sync/network/websocket.cpp#L1021

      The SDK keeps trying to connect to Atlas Device Sync every few seconds and all attempts keep failing.

      No log entries are shown in Atlas Device Sync for the device in question.

      The error is reproducible on both Macs I've tested (Mac Studio and MacBook Pro, both with Apple Silicon) and on an iPad. One Mac is using wired Ethernet and the other devices are on Wi-Fi.

      Can you reproduce the bug?

      95% of the time. It first only appeared on the Macs, but after a few hours, the iPad started exhibiting the same behavior.
      If the app and all associated data is deleted from the device and then reinstalled, it will work fine the first time it is launched.

      Version

      10.49.1

      What Atlas Services are you using?

      Atlas Device Sync

      Are you using encryption?

      Yes

      Platform OS and version(s)

      macOS Sonoma 14.4.1 (23E224)
      iPadOS 17.4.1

      Build environment

      Xcode 15.4
      Swift Package Manager

            Assignee:
            michael.wilkersonbarker@mongodb.com Michael Wilkerson-Barker (Inactive)
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: