Back

[SOLVED] Failed host lookup: 'hostname'

  • 0
  • Android
  • Flutter
  • Users
  • Accounts
dammy
11 Mar, 2023, 23:32

properly initialized

TL;DR
The user was experiencing a "Failed host lookup" error. They realized they needed to call the "initializeAppwrite()" function. They also had a question about the "TextField" controller not supplying any text. There is no clear solution mentioned in the thread, but other users suggest checking for other client instances or ensuring proper initialization.
Drake
11 Mar, 2023, 23:46

You might have some other client instance or something

dammy
11 Mar, 2023, 23:48

I noticed the TextField controller is not supplying any text to it. I wanted the TextField to do so

dammy
11 Mar, 2023, 23:54

it worked, I will need to scatter my data for security purpose

Drake
12 Mar, 2023, 00:01

[SOLVED] Failed host lookup: 'hostname'

dammy
12 Mar, 2023, 00:16

yeah, solved

dammy
12 Mar, 2023, 00:16

thanks man @Steven

spreading my data RN

dammy
12 Mar, 2023, 00:19

I just hope if are in a new function, this wont always re-initiate the details?

client.setEndpoint(end); // Your API Endpoint client.setProject(id); // ID client.setSelfSigned(status: true);

Drake
12 Mar, 2023, 00:22

I don't quite understand

dammy
12 Mar, 2023, 00:22

am I to put it in avoid function and call it?

Drake
12 Mar, 2023, 00:26

What? initializeAppwrite() is your void function already

dammy
12 Mar, 2023, 00:27

got error saying null, I did not call this funcion

Drake
12 Mar, 2023, 00:28

What? I don't understand

dammy
12 Mar, 2023, 00:29

must I call appwriteEndpointProjectID(); before use?

Drake
12 Mar, 2023, 00:31

Ah least once, yes...

dammy
12 Mar, 2023, 00:32

ok then

dammy
12 Mar, 2023, 00:32

working well

dammy
12 Mar, 2023, 00:32

I will check how to throwback error on UI if account exixt

dammy
12 Mar, 2023, 00:36

am trying to catch the response from appwrite

dammy
12 Mar, 2023, 01:15

any way of including phone here?

i want both email and phone

Drake
12 Mar, 2023, 01:17

Not in one API call at the moment, but you can submit a feature request to add it.

For now, make a separate update phone API call

dammy
12 Mar, 2023, 01:17

ok then

dammy
12 Mar, 2023, 01:18

but that will cause two userID

Drake
12 Mar, 2023, 01:18

Update phone won't create another user

dammy
12 Mar, 2023, 01:18

ok

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