Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
FlamurBeqiri opened this issue Aug 20, 2024 · 5 comments · Fixed by #8670
Closed

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

FlamurBeqiri opened this issue Aug 20, 2024 · 5 comments · Fixed by #8670

Comments

@FlamurBeqiri
Copy link

FlamurBeqiri commented Aug 20, 2024

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

Copy link

sync-by-unito bot commented Aug 20, 2024

➤ PM Bot commented:

Jira ticket: RCOCOA-2423

@tgoyne
Copy link
Member

tgoyne commented Aug 20, 2024

It looks like both the type and implementation of the async version of user.functions are very incorrect.

@FlamurBeqiri
Copy link
Author

It looks like both the type and implementation of the async version of user.functions are very incorrect.

What exactly do you mean?
Following the documentation I don't see any issue.

@tgoyne
Copy link
Member

tgoyne commented Aug 20, 2024

Well yes, the documentation isn't going to say "we implemented this incorrectly".

@FlamurBeqiri
Copy link
Author

And how should I use it correctly?

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants