#[CLOSED] Dart client say "Failed host lookup: 'cloud.appwrite.io'"?

6 messages · Page 1 of 1 (latest)

outer wave
#

When trying to fetch a collection with .listDocuments the Error "Failed host lookup: 'cloud.appwrite.io'" occurs. When doing a GET request everything works normal. The code worked before the update of cloud to 1.5.x, and gives this error since a few days.

wanton lintel
outer wave
#

I cant explain this to myself either. Maybe we will have to use custom http/ws requests or dump AppWrite for SupaBase or another BaaS solution with a stable client. Right now, we encounter problems every few days...

eager skiff
outer wave
#

yes it happened on different devices, the person I'm working with also tried it on his machine, and it didn't work. However, the error is gone. We tested it in a clean Flutter 3.19 Project. As you can see, the code we tried was the bare minimum.
final client = Client()
.setEndpoint("https://cloud.appwrite.io/v1/")
.setProject("65f9d35d4280ceaef896");

late final _databases = Databases(client);

var documents = await _databases.listDocuments(
databaseId: '65f9d41555bd9d555f16',
collectionId: '65f9d47b092683d13a78');

wanton lintel