Skip to content
Back

[SOLVED] Not getting data

  • 0
  • Cloud
Raman
31 May, 2026, 01:40

IDK what the issue is but I am stuck at a weried but that I am calling this function

TypeScript
  Future<List<CategoryModel>> getCategories() async {
    try {
      final response = await _tables.listRows(
        databaseId: databaseId,
        tableId: collectionId,
      );

      print('One category document: ${response.rows[1].data}');

      final categories = response.rows
          .map((row) => CategoryModel.fromJson(_rowPayload(row)))
          .toList();

      // Update cache
      for (var category in categories) {
        await CacheService.cacheCategory(category);
      }

      return categories;
    } catch (e) {
      // Fallback to cache if network fails
      try {
        return CacheService.getCachedCategories();
      } catch (_) {
        rethrow;
      }
    }
  }

and this a very basic function calling

and the problem is that on the debug console I am getting this logs

TypeScript
I/flutter (12085): Category list: 25
I/flutter (12085): One category document: {}

It means that I am getting 25 list of documents but I am not getting any data

TL;DR
User faced an issue with not getting data in their app using the Appwrite Flutter SDK. They tried different versions of the SDK and clearing cache but still had the problem. Support suggested checking if there was an index on the array attribute and requested the user to install the updated SDK version 25.0.0. The user eventually updated the SDK, cleaned the cache, and reinstalled the application, which solved the problem.
Raman
31 May, 2026, 01:41

devpolymer is the ID of my project

Raman
31 May, 2026, 01:42

I have checked the permissions as well they are correct

Raman
31 May, 2026, 01:55
TypeScript
I/flutter (12085): One Category list: 25
I/flutter (12085): One Document ID: 6a17215660718b8bffec
I/flutter (12085): One Full Document Map: {$id: 6a17215660718b8bffec, $sequence: 2, $tableId: category, $databaseId: modules, $createdAt: 2026-05-27T16:52:38.990+00:00, $updatedAt: 2026-05-27T16:52:38.990+00:00, $permissions: [read("user:6933ed8f0029d92e799b"), update("user:6933ed8f0029d92e799b"), delete("user:6933ed8f0029d92e799b")], data: {}}

See no data is coming

Raman
31 May, 2026, 02:15

<@564158268319203348>

can you please take a look into that please.

Raman
31 May, 2026, 02:17

and sorry for tagging directly to you but this is kinda urgent I guess

Atharva
31 May, 2026, 04:39

I have pinged relevant engineering team members to take a look

Shmuel
31 May, 2026, 04:51

Can you check please if you have an index on array attribute?

Shmuel
31 May, 2026, 04:53

In case you have please delete the index and check the list again

Raman
31 May, 2026, 05:13

In that collection there is no array

Shmuel
31 May, 2026, 05:18

Thanks.

  • Can you shared please you projectId/databaseId/collectionId will check deeper
  • While using the console do you see list with data?
Raman
31 May, 2026, 05:40
Raman
31 May, 2026, 05:46

Permission and data is there

Raman
31 May, 2026, 05:46
Raman
31 May, 2026, 05:46
Shmuel
31 May, 2026, 05:57

Are yo using flutter SDK? If you see data ok in the console might be a bug else where

Raman
31 May, 2026, 05:58

Yes I am using flutter sdk.

I have tried other version of Appwrite sdk just to be sure but still facing the same issue

Shmuel
31 May, 2026, 06:24

Thanks .. Just to be sure it is not a cache issue I cleaned cache. Can you try again please

Arnab Chatterjee
31 May, 2026, 06:35

Are you using the latest flutter SDK? If yes, Can you downgrade the version and check once

Raman
31 May, 2026, 08:03

I have tried downgrading it doesn’t work

Raman
31 May, 2026, 08:04

Yes I have cleaned the cache of the phone and of my laptop as well.

Shmuel
31 May, 2026, 08:14

Can you share the request please? I am able to get results for a simple request here , would like to see the queries passed, perhaps more data that can help our team to debug

TypeScript
curl -s 'https://sgp.cloud.appwrite.io/v1/databases/modules/collections/category/documents' \
    -H 'x-appwrite-project: devpolymer'
Raman
31 May, 2026, 08:46

Not at the desk right now will share soon

Raman
1 Jun, 2026, 13:17

Yes I am getting the data through the curl command but I can't get the data through the appwrite flutter sdk

Raman
1 Jun, 2026, 13:18

https://discord.com/channels/564160730845151244/1509376800138989628

I guess there is one more ticket regarding to this

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more