Back

[AppwriteException: Already read]

  • 0
  • General
  • React Native
terzo5655
13 Mar, 2025, 18:27

Hi, i created one web app and wanted to create react native app with the same database. When i typed all the ids and code, i got this error. I checked the code multiple times and it is alright, checked the web app, when i used some commands, collection got updated. I thought that its because there are 2 apps on the same project as a free tier, so i created new one but i get the same mistake. I use free tier. Can anybody help asap?

TL;DR
Error message: [AppwriteException: Already read] Developers are encountering an issue where an error is being thrown in their React Native app despite correct code. They suspect the issue might be related to having two apps in the same project under a free tier. They are seeking assistance in resolving this issue promptly. Potential Solution: It is recommended to check the setup and configuration of the app, review the usage of the database (fetch, Appwrite's SDK, etc.), ensure the correct handling of network requests, and possibly verify the access permissions within the project.
Ebenezer Don
13 Mar, 2025, 18:47

Hello @terzo5655, can you share what you're trying to do and the code where the error happens?

Also, how are you accessing your db, are you using fetch, Appwrite's SDK, or another method?

terzo5655
13 Mar, 2025, 18:49

This is how im getting data

terzo5655
13 Mar, 2025, 18:49

useEffect(() => {

TypeScript
    const timeoutId = setTimeout(async () => {
      if (searchQuery.trim()) {
        await loadMovies();

        // Call updateSearchCount only if there are results
        if (movies?.length! > 0 && movies?.[0]) {
          await updateSearchCount(searchQuery, movies[0]);
        }
      } else {
        reset();
      } 
    }, 500);

    return () => clearTimeout(timeoutId);
  }, [searchQuery]);
Evdog
13 Mar, 2025, 18:59

What's the full error and network request being made? Would be curious what the response is from that request as well.

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