Following code throws exception:
Client client = new Client(configuration.ApiEndPoint, false, httpClient); client.SetEndpoint(configuration.ApiEndPoint); client.SetProject(configuration.ProjectId); client.SetJWT(token);
var account = new Account(client); var user = await account.Get();
Exception:
System.NullReferenceException
HResult=0x80004003
Message=Object reference not set to an instance of an object.
Source=Appwrite
StackTrace:
at Appwrite.Models.Target.From(Dictionary2 map)
at Appwrite.Models.User.<>c.<From>b__77_0(Dictionary2 it)
at System.Linq.Enumerable.SelectListIterator2.Fill(ReadOnlySpan1 source, Span1 destination, Func2 func)
at System.Linq.Enumerable.SelectListIterator2.ToList()
at Appwrite.Models.User.From(Dictionary2 map)
at Appwrite.Services.Account.<Get>g__Convert|1_0(Dictionary2 it)
at Appwrite.Client.<Call>d__311.MoveNext()
Am I missing something?
Recommended threads
- Bug on Updating User Limit
I’ve encountered a bug in the Appwrite Cloud UI when attempting to update the user limit to 0. My goal is to disable public registration while still allowing e...
- Failed to load data from database
My app broken, it throw AppwriteException exception. Few days ago it works well. AppwriteException: , ClientException with SocketException: Failed host lookup:...
- Getting CORS error when accessing websit...
When accessing my website I'm getting: (index):1 Access to font at 'https://assets.appwrite.io/fonts/inter/Inter-Regular.woff2' from origin 'https://mvp-site-ra...