[SOLVED] TypeError (type 'List<dynamic>' is not a subtype of type 'List<String>')
- 0
- Flutter
- Cloud

am getting this error on all sdk functions, from account.get onwards

Initialize the account class first, the use it.
const account = new Account(client);
const res = await account.get();

same issue

and its happening to Databases(client).listDocuments

what is .timeout

timeout is the timeout of the function to 59 seconds

If you use exactly what is in the docs, does it not work?
import 'package:appwrite/appwrite.dart';
Client client = Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
Account account = Account(client);
User result = await account.get();


it worked thanks

Thanks :)

[SOLVED] TypeError (type 'List<dynamic>' is not a subtype of type 'List<String>')
Recommended threads
- Stuck at pinging the server to finish ad...
I'm not using the starter app and I'm not sure how to finish connecting my app to Appwrite.io. Is there a CURL command I can run to finish setup?
- 500 internal error
I get a 500 internal error when trying to access my database on appwrite cloud. Sometimes it would start working but this time it never corrects.
- Error getting session: AppwriteException...
I get this error `Error getting session: AppwriteException: User (role: guests) missing scope (account)` when running in prod. As soon as I try running my app o...
