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
- RowList: The value of total is coming as...
RowList: The value of total is coming as a String, so it throws an error because it’s not parsed into an int. Error: TypeError: \"37\": type 'String' is not a ...
- User Blocked - False Positive
Today I tried to log in to my cloud console and it said the user is blocked and I didn't even receive any email regarding this like what kind of violation is my...
- is `account.get()` safe to be used in th...
I want to user's `id` for authentication. However, a while ago I was told in this server not to use `account.get()` and instead add user preferences for that us...