Back

Failed to Lookup Host issue

  • 0
  • Flutter
  • Cloud
Hassanmrwt
29 May, 2023, 17:36

I am facing serious issue after upgrading Flutter to new version. Last time I posted same issue here and also on flutter channel but none were able to resolve

TL;DR
Issue: Failed to Lookup Host Solution: 1. Check if your Android manifest file has the following permissions: ```xml <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> ``` 2. Make sure the device's Android settings allow network access. 3. Confirm that the endpoint URL is correctly set. 4. Verify if you can access the same URL from a mobile browser. 5. Check if you are logged into cloud.appwrite.io on the web version. 6. If the issue persists, consider downgrading Flutter to the previous version.
Drake
29 May, 2023, 17:49

On your device, can you open the browser and browse to cloud.appwrite.io?

Hassanmrwt
29 May, 2023, 18:00

I am logged in to cloud.appwrite.io on web using it

Hassanmrwt
29 May, 2023, 18:00

Same is accessible from mobile

D5
29 May, 2023, 18:07

Could you send what's the url you have set as endpoint?

Drake
29 May, 2023, 18:07

Then maybe you need to change some android setting to allow network access

D5
29 May, 2023, 18:10

True, make sure your android manifest file has:

TypeScript
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
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