"Operation canceled" (error code=89, category=realm.basic_system) when closing a Realm sync session

Hi there,

We close a Realm sync session in our app when the user requests account deletion. As far as I can tell from Realm logs both on the client and the server side, the session is closed just normally:

RLMSyncLogLevel(rawValue: 6) : Connection[5]: Destroying connection object in file /Users/runner/work/1/s/Sources/Packages/Services/Sources/Services/Realm/RealmHandler.swift
RLMSyncLogLevel(rawValue: 4) : Connection[5]: Disconnected in file /Users/runner/work/1/s/Sources/Packages/Services/Sources/Services/Realm/RealmHandler.swift
RLMSyncLogLevel(rawValue: 6) : Connection[5]: Session[5]: Deactivation completed in file /Users/runner/work/1/s/Sources/Packages/Services/Sources/Services/Realm/RealmHandler.swift
RLMSyncLogLevel(rawValue: 6) : Connection[5]: Session[5]: Sending: UNBIND in file /Users/runner/work/1/s/Sources/Packages/Services/Sources/Services/Realm/RealmHandler.swift
RLMSyncLogLevel(rawValue: 6) : Connection[5]: Session[5]: Initiating deactivation in file /Users/runner/work/1/s/Sources/Packages/Services/Sources/Services/Realm/RealmHandler.swift
Sync -> Session End
  "Session closed after receiving UNBIND event",
  "Session was active for: 3m5s"

Sync -> Connection End
 "Connection was active for: 3m6s"

SDK:
10.34.1

Platform:
Realm Cocoa vVersion 16.4.1 (Build 20E252)

Though we’re receiving a Sentry crash report right after closing the session, which contains the following information:

NSPOSIXErrorDomain
Code: 89

User Info

Category                               realm.basic_system
Error Code                            89
NSLocalizedDescription	     Operation canceled

with the stack trace ending up at

realm::Table::find_first<T>

We’d appreciate any insights on why could this error could be raised?

1 Like