Back

[SOLVED] Appwrite not connecting to flutter project

  • 0
  • Flutter
Maniac_Fighter
30 Jun, 2023, 09:39

umm, not like this, in the Run & debug tab (probably it's opened now in the ss above). check the value of account var and from there check the value of url its making the requests too or you could also check the client variable and see what's the endpoint

TL;DR
The user was facing an issue with Appwrite not connecting to their Flutter project. Another user suggested checking the documentation and altering the logic. The user then mentioned that there was no valid session and received a new error. They were advised to use their IP address instead of 'localhost' and to check the device IP address. The user mentioned that everything else seemed fine. The solution was to check the value of the 'account' variable and the endpoint in the 'client' variable.
Aarush Acharya
30 Jun, 2023, 09:48

you mean like this

Maniac_Fighter
30 Jun, 2023, 09:50

yep seems fine

Maniac_Fighter
30 Jun, 2023, 09:51

I don't see any other reason that the connection should fail

Maniac_Fighter
30 Jun, 2023, 09:51

Wait a second

Maniac_Fighter
30 Jun, 2023, 09:51

On which device are you running this on @Aarush Acharya ?

Maniac_Fighter
30 Jun, 2023, 09:51

emulator?

Aarush Acharya
30 Jun, 2023, 09:54

yes

Aarush Acharya
30 Jun, 2023, 09:55
Maniac_Fighter
30 Jun, 2023, 09:56

so it wouldn't connect to localhost

Maniac_Fighter
30 Jun, 2023, 09:57

you need to use the device ip address

Aarush Acharya
30 Jun, 2023, 09:57

shall write my IP

Maniac_Fighter
30 Jun, 2023, 09:57

yep

Maniac_Fighter
30 Jun, 2023, 09:57

you can get from ifconfig

Aarush Acharya
30 Jun, 2023, 09:57

okay and v1 should be there?

Maniac_Fighter
30 Jun, 2023, 09:57

yep yep

Aarush Acharya
30 Jun, 2023, 09:57

okay thanks give me a second

Maniac_Fighter
30 Jun, 2023, 09:57

instead of localhost your Ip address should be there

Maniac_Fighter
30 Jun, 2023, 09:57

rest all stays the same

Aarush Acharya
30 Jun, 2023, 09:58

okay give me a few would let you know

Aarush Acharya
30 Jun, 2023, 10:04

Thanks a lot the error changes i guess it connected

But getting this error now

Maniac_Fighter
30 Jun, 2023, 10:06

yep that's expected cause there isn't any valid session.

Aarush Acharya
30 Jun, 2023, 10:08

okay thanks that means the logic needs to be altered can take up the docs from here I guess thanks a lot

Drake
30 Jun, 2023, 16:42
Drake
30 Jun, 2023, 16:42

[SOLVED] Appwrite not connecting to flutter project

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