
These errors occur on a development server with networking enabled.
npm run dev -- --host
ERROR Sign-in error: 0 Network request failed ERROR Sign-in error: 0
I have a custom domain as _APP_DOMAIN and I have changed the environment variables in the docker container which it runs on.
It works on desktop, just not mobile.

Where are you running this?

One click install on a digital ocean droplet.
I changed the environment variables to the custom domain.
_APP_DOMAIN _APP_TARGET_DOMAIN _APP_FUNCTIONS_DOMAIN
I donβt remember exactly the variable names but those are the ones I changed to a hostname. The hostname has an A record pointing to the droplet public ipv4 address on my DNS on porkbun.
The weird thing is that it works on desktop which has localhost:5173 but it doesnβt work on the same development server over the network, eg 192.168.XX.XX:5173

one-click install doesn't run from source so you wouldn't be running npm run dev
π§

You're right, it's running on the droplet just fine. I can reach the dashboard and everything works.
The thing I'm having this issue with is when I'm using the JavaScript SDK to handle authentication on the client side. It works on desktop but not on mobile.
I followed your guide on how to implement it on React. Again, works on desktop not on mobile.

you mean mobile browser?
is your mobile phone connected to the same network as your appwrite instance?

oh wait...this is a CORS error

you need to add a web platform to your project where the hostname is whatever your app is running on

so 192.168.XX.XX

Great we got that sorted... so I just add new platforms for each hostname its going to be interacted with?


Thanks! It worked π

[SOLVED] Auth network request failed
Recommended threads
- Is my approach for deleting registered u...
A few weeks ago, I was advised not to use the registered users' id in my web app. Instead, I store the publicly viewable information such as username and email ...
- Stuck in "deleting"
my parent element have relationship that doesnt exist and its stuck in "deleting", i cant delete it gives me error: Collection with the requested ID could not b...
- Help with 409 Error on Relationship Setu...
I ran into a 409 document_already_exists issue. with AppWrite so I tried to debug. Here's what I've set up: Collection A has 3 attributes and a two-way 1-to-m...
