#[SOLVED] TypeError (type 'List<dynamic>' is not a subtype of type 'List<String>')

10 messages · Page 1 of 1 (latest)

cinder breach
#

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

fading mulch
#

Initialize the account class first, the use it.

const account =  new Account(client);
const res = await account.get();
cinder breach
#

same issue

#

and its happening to Databases(client).listDocuments

fading mulch
#

what is .timeout

cinder breach
#

timeout is the timeout of the function to 59 seconds

fading mulch
#

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();
hasty swan
#

#🏠│general message

cinder breach
#

it worked thanks