Back

[SOLVED] Failed host lookup: 'cloud.appwrite.io' in Release mode.

  • 0
  • Flutter
  • Cloud
Enzo Conty
27 Oct, 2024, 17:14

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 ?

TypeScript
[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:

TypeScript
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.

TL;DR
Developers encountered a "Failed host lookup: 'cloud.appwrite.io' in Release mode" error. The solution was ensuring Internet permissions were enabled in the manifest. The issue only occurred on Android, not iOS.
ideclon
27 Oct, 2024, 17:28

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)

Enzo Conty
27 Oct, 2024, 17:33

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

ideclon
27 Oct, 2024, 17:33

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

Enzo Conty
27 Oct, 2024, 17:40

[SOLVED] Failed host lookup: 'cloud.appwrite.io' in Release mode.

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more