
I am trying to get current User, but get this error message when I do. I get back user prefs, but error comes from trying account.get() So I am getting User. I am not sure what variable is not set. I looked into User object, It can be status, emailVerification, phoneVerification, mfa, totp. There is no other bool it is expecting.
Client client = Client();
client
.setEndpoint(DBConstants.localhostAccessPoint)
.setProject(DBConstants.localhostProjectID)
.setSelfSigned(status: true);
Account account = Account(client);
Preferences prefs = await account.getPrefs();
print('prefs: ${prefs.data}');
User user = await account.get();
Recommended threads
- REST API error : Request Entity Too Larg...
When trying to upload file to bucket (file size is 12mo), I got this error: Request Entity Too Large I'm using REST API because I'm calling appwrite from n8n w...
- Oauth integration not working after appw...
Hey all, I hope this is the correct category. As the title states, we recently upgraded both our staging and production appwrite to 1.6.1. We had GitHub oauth ...
- ERROR: NIOHTTPCOMPRESSION/DECOMPRESSION
Hello, I finally got my appwrite self-hosted and created an account which went through to the request. However, when I went to test it through Xcode and login t...
