#[SOLVED] AppwriteException: null, Failed host lookup: 'hostname' (0)
15 messages · Page 1 of 1 (latest)
You're seeing this error because you haven't called client.setEndpoint()
I have called client.setEndpoint(), still it is giving this error
And is this instance being used later?
Yes!!
This probably doesn't work. I usually pass the client into the app
So, i should createTodo function in main.dart ??
Sir, i am getting same error...
This is a different error now.
You can't use localhost for an Android device because localhost refers to the current device. On an Android emulator, you can use 10.0.2.2, a magic IP that points to the host machine.