
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(Dictionary
2 it)
at System.Linq.Enumerable.SelectListIterator2.Fill(ReadOnlySpan
1 source, Span1 destination, Func
2 func)
at System.Linq.Enumerable.SelectListIterator2.ToList()
at Appwrite.Models.User.From(Dictionary
2 map)
at Appwrite.Services.Account.<Get>g__Convert|1_0(Dictionary2 it)
at Appwrite.Client.<Call>d__31
1.MoveNext()
Am I missing something?
Recommended threads
- Sharing cookies
Hi, I’m using Appwrite Cloud, and I have a setup where my Appwrite backend is hosted on a subdomain (e.g., api.example.com), while my frontend (Next.js app) and...
- Custom Domain Issue
i have added a custom domain about 21 hours ago, but till now there is no SSL certificate is active on it. but if i do DNS check via https://dnschecker.org/#C...
- Flutter OAuth2 Google does not return to...
When the flow starts, the browser opens, I select an account, and it keeps showing: """ Page not found The page you're looking for doesn't exist. `general_rout...
