Open
Description
👟 Reproduction steps
Sorry guys but it's been months with this issue. Please just do a simple test of trying to create a new account from a Gmail login. It will always fail. I reported a bug on Users.cs that was throwing a null exception. Then it got fixed and merged but it got the "targets" field still messed up.
Here is the log with the stacktrace. Ignore the "flutter" message, since it's the console on my mobile emulator, but the stack trace is the c# code in here.
I/flutter (19237): error:System.NullReferenceException: Object reference not set to an instance of an object.
I/flutter (19237): at Appwrite.Models.Target.From(Dictionary`2 map) in D:\appwritesdk-for-dotnet\Appwrite\Models\Target.cs:line 57
I/flutter (19237): at Appwrite.Models.User.<>c.<From>b__77_0(Dictionary`2 it) in D:\appwritesdk-for-dotnet\Appwrite\Models\User.cs:line 130
I/flutter (19237): at System.Linq.Enumerable.SelectListIterator`2.Fill(ReadOnlySpan`1 source, Span`1 destination, Func`2 func)
I/flutter (19237): at System.Linq.Enumerable.SelectListIterator`2.ToList()
I/flutter (19237): at Appwrite.Models.User.From(Dictionary`2 map) in D:\appwritesdk-for-dotnet\Appwrite\Models\User.cs:line 112
I/flutter (19237): at Appwrite.Services.Account.<Get>g__Convert|1_0(Dictionary`2 it) in D:\appwritesdk-for-dotnet\Appwrite\Services\Account.cs:line 38
I/flutter (19237): at Appwrite.Client.Call[T](String method, String path, Dictionary`2 headers, Dictionary`2 parameters, Func`2 convert) in D:\appwritesdk-for-dotnet\Appwrite\Client.cs:line
As you can see the "target" is null or some of the fields are, when you login using gmail.
👍 Expected behavior
it should register an account
👎 Actual Behavior
it fails to register an account
🎲 Appwrite version
Version 0.10.x
💻 Operating system
Windows
🧱 Your Environment
No response
👀 Have you spent some time to check if this issue has been raised before?
- I checked and didn't find similar issue
🏢 Have you read the Code of Conduct?
- I have read the Code of Conduct