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
- Screens not working correctly
Hy I new in flutter dart I create one project and in lib folder screens folder and main.dart widgets all separate folders available I only splash screen import ...
- getaddrinfo EAI_AGAIN when using axios
I have this code to make a get request to an API ```javascript function fetchUserListPerPage(page) { return new Promise(async (resolve, reject) => { ...
- Database Collection Permissions
Hi, i would like to create a document in a collection, and i would like to set up a permission so just the user who created the document can read it. This has t...