While trying to fetch team data or membership data using teams.get(id...) or teams.listMemberships it showing an error :Exception has occurred.
AppwriteException (AppwriteException: team_not_found, Team with the requested ID could not be found. (404))
But teams.list() gives total = 2. User is in the team (confirmed) Below is the code.
Team id is also correct..
TL;DR
Error message: AppwriteException: team_not_found
Developers are facing an issue where fetching team data returns a 404 error despite the team ID being correct and the user confirmed in the team. The teams.list() method returns 2 teams.
Solution: Try rechecking the team ID for accuracy and ensure the team exists in the system. It might be helpful to verify the team's existence through a different method to rule out discrepancies.