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

🐛 Bug Report: Still impossible to create a new user from Gmail #44

Open
2 tasks done
joaquingrech opened this issue Jun 20, 2024 · 0 comments
Open
2 tasks done
Labels
bug Something isn't working

Comments

@joaquingrech
Copy link

👟 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(Dictionary2 map) in D:\appwritesdk-for-dotnet\Appwrite\Models\Target.cs:line 57 I/flutter (19237): at Appwrite.Models.User.<>c.<From>b__77_0(Dictionary2 it) in D:\appwritesdk-for-dotnet\Appwrite\Models\User.cs:line 130
I/flutter (19237): at System.Linq.Enumerable.SelectListIterator2.Fill(ReadOnlySpan1 source, Span1 destination, Func2 func)
I/flutter (19237): at System.Linq.Enumerable.SelectListIterator2.ToList() I/flutter (19237): at Appwrite.Models.User.From(Dictionary2 map) in D:\appwritesdk-for-dotnet\Appwrite\Models\User.cs:line 112
I/flutter (19237): at Appwrite.Services.Account.g__Convert|1_0(Dictionary2 it) in D:\appwritesdk-for-dotnet\Appwrite\Services\Account.cs:line 38 I/flutter (19237): at Appwrite.Client.Call[T](String method, String path, Dictionary2 headers, Dictionary2 parameters, Func2 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?

@joaquingrech joaquingrech added the bug Something isn't working label Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant