We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Always
We have a server function that has no arguments: let realmResponse = try await app.currentUser?.functions.deleteAccount()
let realmResponse = try await app.currentUser?.functions.deleteAccount()
After performing the call the app crashes on FunctionCallable see screenshot:
FunctionCallable
RealmSwift/Sync.swift:1144: Fatal error: Unexpectedly found nil while unwrapping an Optional value
No response
10.52.3
No
17.5
Xcode version: 15.4.0
The text was updated successfully, but these errors were encountered:
➤ PM Bot commented:
Jira ticket: RCOCOA-2423
Sorry, something went wrong.
It looks like both the type and implementation of the async version of user.functions are very incorrect.
async
user.functions
What exactly do you mean? Following the documentation I don't see any issue.
Well yes, the documentation isn't going to say "we implemented this incorrectly".
And how should I use it correctly?
User.functions
Successfully merging a pull request may close this issue.
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
![Screenshot 2024-08-20 at 13 35 44](https://private-user-images.githubusercontent.com/129724315/359460661-ae8394ce-b7b9-4577-a50b-85c5c695c1e3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyOTQyNzcsIm5iZiI6MTczOTI5Mzk3NywicGF0aCI6Ii8xMjk3MjQzMTUvMzU5NDYwNjYxLWFlODM5NGNlLWI3YjktNDU3Ny1hNTBiLTg1YzVjNjk1YzFlMy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMVQxNzEyNTdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT03ZTQzZDRlZjc4Mzg0OTI0NmVlMDM2MWNmMDY0NWM4NzhlNTUwNzE0YWU1NDVmZDcxODRiNmJjYzI1YzdjODU2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.Y4aKh6VoMttx9OYBmsa-cadNjkAh6-e_KDBF7CksZ4k)
FunctionCallable
see screenshot: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
The text was updated successfully, but these errors were encountered: