![](https://cdn.discordapp.com/avatars/400466767337750538/423378c2a0df9472f21da44cfcf23e31.webp)
I have a appwrite server function querying my memberships as this;
TypeScript
data = json.loads(request.payload or "{}")
queries = []
email = None
if not 'cursor' in data:
return response.json({})
if data['cursor'] != 'null':
queries.append(Query.greaterThanEqual(data['cursor']))
if data['email'] != 'null':
email = data['email']
lista = teams.list_memberships(team_id=data['time_id'], queries=queries, search=email)
return response.json(lista)```
and I've tried to replace it by direct querying from mobile as this:
```final docs = await ServidorAppwrite.instance.teams.listMemberships(
teamId: timeId,
queries: [
if (cursor != null) Query.cursorAfter(cursor),
],
search: email,
);```
but the mobile query throws:
`AppwriteException: team_not_found, Team with the requested ID could not be found. (404)`
I don't know why this happens because the team_id is exactly the same...
TL;DR
Developers are having trouble with a Flutter query when trying to list memberships. The error `team_not_found` occurs even though the team ID is correct. This could be due to a potential issue with how the team ID is being passed. Double-check the team ID formatting and ensure it matches. Recommended threads
- AppwriteException: general_unknown_origi...
Hii all <:KannaWave:657059003410677761> I'm trying to build an simple signup page with dart/flutter and appwrite.. So I'm using Android Studio. Added my flutte...
- Disallow personal data not working when ...
Hey, I'm running into an issue with the "disallow personal data in passwords" setting when resetting passwords through my Flutter app. I've enabled the option ...
- Appwrite Storage Related Issue
I/flutter ( 1784): Error updating profile image: AppwriteException: , ClientException with SocketException: Connection reset by peer (OS Error: Connection reset...
![](/images/bgs/pre-footer.png)