Back

No address associated with hostname

  • 1
  • Flutter
rosario
7 Oct, 2023, 14:47

basically when I run and debug it, there is no issues until line 57

TL;DR
User is experiencing an issue with a hostname lookup in their app. They tried pinging the hostname and using a VPN, but it doesn't work. The endpoint seems to be correct and returns a 200 response. They tested with google.com and got the same error. A suggestion was made to test with the http package and a get call to something like google.com. The issue occurs after line 56 in the code. It could be a network problem or the manifest change may not have applied. Possible Solution: Test with the http package and a get call to a different website, such as google.com. Check if the manifest changes have
rosario
7 Oct, 2023, 14:47
rosario
7 Oct, 2023, 14:48

which means line 56 with the authentication works

Drake
7 Oct, 2023, 14:48

Ya seems like a network problem. Maybe your manifest change didn't apply

rosario
7 Oct, 2023, 14:50

as you can see the _login() is called in the line 82

rosario
7 Oct, 2023, 14:50
Drake
7 Oct, 2023, 14:51

You can also test by adding the http package and testing a get call to something like google.com

rosario
7 Oct, 2023, 14:58

you are right

rosario
7 Oct, 2023, 14:58

I tested with google.com, I get the same error

rosario
7 Oct, 2023, 15:04

no sorryI take it back

rosario
7 Oct, 2023, 15:04
rosario
7 Oct, 2023, 15:05

the response contains a 200. After that if I get to the next step in debug mode I got this:

rosario
7 Oct, 2023, 15:06
rosario
7 Oct, 2023, 15:06

the issue is with the host

rosario
7 Oct, 2023, 15:14
rosario
7 Oct, 2023, 15:18

is https://cloud.appwrite.io/v1 the right endpoit?

rosario
7 Oct, 2023, 15:18

endpoint?

rosario
7 Oct, 2023, 15:19
darShan
7 Oct, 2023, 16:02

yup, try using a vpn or a different ip to see if you are being restricted.

darShan
7 Oct, 2023, 16:05

I checked : https://cloud.appwrite.io/v1/health/version and it seems to be working fine.

Drake
8 Oct, 2023, 02:16

This is the right endpoint. What happens if you browse to cloud.appwrite.io on your device?

rosario
8 Oct, 2023, 09:09

I tried using vpn being connected from different countries, pinging does not work. But I have access to the page if I use my browser in my laptop

rosario
8 Oct, 2023, 09:09

yes, also in chrome in the emulator I have access to the page

Drake
9 Oct, 2023, 02:33

You only ping a hostname. Not a url

Drake
9 Oct, 2023, 02:36

Weird...I don't know why you aren't able to lookup the hostname in your app...

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