SocketException: Failed host lookup: 'xyz.com'

Viewed 273

We launched our Flutter App on playstore yesterday and users are receiving this Socket exception while calling our backend APIs

SocketException: Failed host lookup: ‘xyz.com’ (OS Error: No address associated with hostname, errno = 7)

The APIs work on some devices but failing on some. We are using https requests and the problem is not Android 10 specific. We have added internet permissions on all three AndroidManifest files so that is not the issue.

Also we are using gzip encoding in the request headers.

Thanks in advance!

0 Answers
Related