Back

AppwriteException: Network request timed out

  • 0
  • Self Hosted
CantFind
25 Jun, 2024, 22:46
TL;DR
Developers experiencing AppwriteException: Network request timed out. They are trying to connect their device via LAN IP instead of localhost. The issue may be related to using a private Docker address or script execution location. Try changing API endpoint to LAN IP to fix the problem.
CantFind
25 Jun, 2024, 22:47
CantFind
25 Jun, 2024, 22:47

Only this isn't working

CantFind
25 Jun, 2024, 22:48
Steven
25 Jun, 2024, 22:48

Perhaps it's a private docker address...

Steven
25 Jun, 2024, 22:49

Is the script being executed from the same place as your browser

CantFind
25 Jun, 2024, 22:49

Owh any ideas on how I can fix it?

Steven
25 Jun, 2024, 22:49

Try using your LAN IP instead

CantFind
25 Jun, 2024, 22:49

I use expo and connect thru my phone

Steven
25 Jun, 2024, 22:49

Oh...well thats the problem

CantFind
25 Jun, 2024, 22:50

So do I need to switch to lan?

Steven
25 Jun, 2024, 22:50

Yes

CantFind
25 Jun, 2024, 22:50

How am I going to change the API endpoint

CantFind
25 Jun, 2024, 22:50

and edit the ip from docker

Steven
25 Jun, 2024, 22:50

Do it in your code

CantFind
25 Jun, 2024, 22:50

But on the site?

CantFind
25 Jun, 2024, 22:51
Steven
25 Jun, 2024, 22:51

No it's fine

CantFind
25 Jun, 2024, 22:51

lemme try

CantFind
25 Jun, 2024, 22:54
CantFind
25 Jun, 2024, 22:54

I’m going to use this right?

CantFind
25 Jun, 2024, 22:54
CantFind
25 Jun, 2024, 22:54
CantFind
25 Jun, 2024, 22:54

The phone ip and the pc ip are the same

CantFind
25 Jun, 2024, 22:56

Do I need to change this too?

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