Skip to content

Fatal error: Unexpectedly found nil while unwrapping an Optional value #8669

@FlamurBeqiri

Description

@FlamurBeqiri

How frequently does the bug occur?

Always

Description

We have a server function that has no arguments:
let realmResponse = try await app.currentUser?.functions.deleteAccount()

After performing the call the app crashes on FunctionCallable see screenshot:
Screenshot 2024-08-20 at 13 35 44

Stacktrace & log output

RealmSwift/Sync.swift:1144: Fatal error: Unexpectedly found nil while unwrapping an Optional value

Can you reproduce the bug?

Always

Reproduction Steps

No response

Version

10.52.3

Are you using encryption?

No

Platform OS and version(s)

17.5

Build environment

Xcode version: 15.4.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions