Skip to content
Back

AppwriteException Network request failed | react-native/expo + Appwrite

  • 0
  • Databases
  • React Native
  • Storage
Cordy
19 Aug, 2025, 21:41

I'm watching a react native / expo tutorila that uses Appwrite as it's backend for its database. So, in this tutorial, there is implementing the seed functionality for the database and storage. So, finally executing the seed function, the Appwrite throws an error as below

TypeScript
AppwriteException: Network request failed

The error doesn't fix even if I use the npx start -c or npx expo start -c

So, I would like to know how could I be able to fix this. Please help me someone tkeep continue the tutorial from the current state.

Thank you!

TL;DR
Developers are experiencing a 'Network request failed' error when executing the seed functionality in a React Native/Expo app using Appwrite as the backend. The issue arises in the seed.ts file. Trying to fix by restarting doesn't work. To resolve, check the network configurations in appwrite.ts and review the code in seed.ts for any potential errors in making network requests.
Kenny
19 Aug, 2025, 21:43

Can you provide the code you're using that is throwing this error?

Cordy
19 Aug, 2025, 21:46

This is the data.ts file

Cordy
19 Aug, 2025, 21:48

This is the seed.ts file

Cordy
19 Aug, 2025, 21:49

Here is the appwrite.ts file which contains all the configurations for the appwrite

Cordy
19 Aug, 2025, 21:51

I know the provided code is too much but I hope this may not be an issue to resolve the problem

Kenny
19 Aug, 2025, 21:52

what function is throwing the error

Cordy
19 Aug, 2025, 21:54

from the seed.ts. when I execute it to seed the data to the database it throws that AppwriteException: Network request failed error

Kenny
19 Aug, 2025, 21:56

where in seed.ts

Cordy
19 Aug, 2025, 21:56

This is it

Kenny
19 Aug, 2025, 21:57

sure that's the file, there are multiple calls to appwrite I'm not going to run this myself, i want to know where it's throwing what function inside this file. Do you have a stack trace?

Cordy
19 Aug, 2025, 21:58

Hold on

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