#[CLOSED] Dart client say "Failed host lookup: 'cloud.appwrite.io'"?
6 messages · Page 1 of 1 (latest)
maybe flutter bug or app permissions?
I can't reproduce. i have a couple flutter apps that still work fine after the upgrade
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...
Could you please share the code?
What's the environment?
Does this happen in all devices?
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');
FYI, it's best to wrap code in backticks to format a bit nicer. You can use 1 backtick for inline code (https://www.markdownguide.org/basic-syntax/#code) and 3 backticks for multiline code (https://www.markdownguide.org/extended-syntax/#syntax-highlighting).