You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Realm version: 10.15.1
Just called this function for a valid and registered email. But instead of calling the function it crashes.
On Android:
Exception "RealmException: 'vectors' " occurs when the function is called first time, but when I call it again it works
On iOS:
The application crashes when this function is called
Repro steps
1- Create simple App with realm sync.
2- Enter Email.
3- CallResetPasswordFuncAsync()
4- And it crashes
Version
.Net 6.0
What SDK flavour are you using?
MongoDB Atlas (i.e. Sync, auth, functions)
What type of application is this?
Dotnet MAUI
Client OS and version
Android and IOS
Code snippets
if(_realmApp!=null){try{
_realmApp.EmailPasswordAuth.CallResetPasswordFunctionAsync(email,"randomPass",null);}catch(Exceptione){//Calling it again because the function "CallResetPasswordFunctionAsync" is causing exception for first time execution.try{
_realmApp.EmailPasswordAuth.CallResetPasswordFunctionAsync(email,"randomPass",null);}catch(Exceptione1){returnfalse;}}returntrue;}returnfalse;
Hi @Ahmadpashaquarterpi,
The important error here is realm-dotnet/wrappers/realm-core/src/realm/object-store/util/bson/bson.hpp:219: [realm-core-12.4.0] Assertion failed: m_type == Bson::Type::Array. I understand that it actually looks quite obscure in the way it's worded. We're gonna improve on this.
In the meanwhile the issue here is that you're sending null as third argument. And that's not accepted. We'll add a better error message for this kind of error.
You can fix your problem by simply removing the third argument instead of passing null, like so: _realmApp.EmailPasswordAuth.CallResetPasswordFunctionAsync(email,"randomPass");
If instead you need to pass a null as an additional argument then: _realmApp.EmailPasswordAuth.CallResetPasswordFunctionAsync(email,"randomPass", new object[] { null });
is what you need.
Additionally, keep in mind that CallResetPasswordFunctionAsync is an async method that returns a Task. Make sure to await for it to end.
I hope this helps.
I'm closing this issue for now but if you keep having problems, feel free to reopen it.
What happened?
Realm version: 10.15.1
Just called this function for a valid and registered email. But instead of calling the function it crashes.
On Android:
Exception "RealmException: 'vectors' " occurs when the function is called first time, but when I call it again it works
On iOS:
The application crashes when this function is called
Repro steps
1- Create simple App with realm sync.
2- Enter Email.
3- CallResetPasswordFuncAsync()
4- And it crashes
Version
.Net 6.0
What SDK flavour are you using?
MongoDB Atlas (i.e. Sync, auth, functions)
What type of application is this?
Dotnet MAUI
Client OS and version
Android and IOS
Code snippets
Stacktrace of the exception/crash you're getting
Relevant log output
The text was updated successfully, but these errors were encountered: