
Hi.
I'm participating on the hackathon, and when building my app on debug, there is no issue, but when building for prod, I got an issue where my client can't seem to retrieve the host of the cloud ?
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: AppwriteException: , ClientException with SocketException: Failed host lookup: 'cloud.appwrite.io' (OS Error: No address associated with hostname, errno = 7), uri=https://cloud.appwrite.io/v1/account/sessions/anonymous (0)
As of RN, this is how I create my client:
Client()
.setEndpoint('https://cloud.appwrite.io/v1')
.setProject(projectId)
.setSelfSigned(status: _isDebugEnabled);
The issue is happenning on both emulators and physical devices. The devices both have internet.

Do you have the Internet permission? intent? enabled in your manifest? (I know almost nothing about mobile dev, but that’s an issue which has come up here many times)

Nevermind, it was indeed the internet permissions ! Got used to iOS, didn't realize the issue was only on Android. Tyvm @ideclon 🩵

Np! If your issue has been solved, you can mark this post as closed by adding "[SOLVED]" to the beginning of the title

[SOLVED] Failed host lookup: 'cloud.appwrite.io' in Release mode.
Recommended threads
- WebSocket reconnecting issues – Realtime...
Hello! I am experiencing a problem with the Realtime API. My frontend is constantly reconnecting to the WebSocket server, and as a result Realtime is not worki...
- Migration issues
Hey, quick question — I’m currently running a project on an Appwrite Pro account, but I recently got access to the GitHub Student Pack. Is there a way to migrat...
- updateDocument() throws "document_alread...
Hi guys, im using server sdk to update appwrite attribute value which relationship type. But facing "document_already_exists", may i know why?
