Skip to content
This repository was archived by the owner on Dec 4, 2025. It is now read-only.
This repository was archived by the owner on Dec 4, 2025. It is now read-only.

Add additional SyncError types, explain what they are, when then can happen, and how to handle them #2481

@drmarkpowell

Description

@drmarkpowell

Is there something wrong with existing docs content, or is something missing from the docs?

Missing

If this is related to existing docs content, what page or pages are affected?

https://www.mongodb.com/docs/realm/sdk/swift/sync/handle-sync-errors/

Which SDK does this issue affect?

Swift and maybe others

What would you like to see in the docs that isn't already there?

There is a detailed explanation here of Client Reset errors and how they may be dealt with, and that is very helpful, please maintain that.

Also though, there are other error types in this category:

  • clientSessionError
  • clientUserError
  • clientInternalError
  • underlyingAuthError
  • permissionDeniedError

These types of Sync Error have no documented details on the page I linked above, and it would be very helpful to add them.
For our products that use Realm, the expectations of the organization I work for are that any type of errors like these that can happen are fully understood and that any and all precautions taken to handle them gracefully (or at least reasonably) to get users back to a working app state as soon as possible and in as automated a way as possible.

If the content is technical, can you link to an example implementation?

Realm SDK docs for RLMSyncError

Where do you feel this content belongs?

Handling Realm Sync Errors

Perhaps add sub-pages under this heading to better organize the larger amount of content. Client reset for example is right now the bulk of the page and maybe needs its own page.

Other Comments

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions