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
- GIthub Student dev pack
I have github student developer pack on this account (anand0207sharma@gmail.com) and i tried claiming Appwrite's studentdeveloper pack but its not happening. I ...
- Dart runtime functions are timing out an...
My appwrite function is not executing at all and showing the error in error logs: I tried redeploying. Still no luck. I have set the function to ise maximum re...
- AppWrite OSS sponsorship
Hello I have applied for AppWrite OSS sponsorship about a month ago. I haven't received any email response so far. Can you you help me please? My email for appl...