Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal Exception: FlutterError | ClientException with SocketException: Failed host lookup #43

Open
hashimsayed0 opened this issue Nov 28, 2023 · 0 comments · May be fixed by #44
Open

Fatal Exception: FlutterError | ClientException with SocketException: Failed host lookup #43

hashimsayed0 opened this issue Nov 28, 2023 · 0 comments · May be fixed by #44

Comments

@hashimsayed0
Copy link

An unhandled error occurs sometimes with the http.get() calls both in Android and iOS

ClientException with SocketException: Failed host lookup: 'play.google.com' (OS Error: No address associated with hostname, errno = 7), uri=https://play.google.com/store/apps/details?id=com.example.exampleapp&hl=en_US

ClientException with SocketException: Failed host lookup: 'itunes.apple.com' (OS Error: nodename nor servname provided, or not known, errno = 8), uri=https://itunes.apple.com/lookup?bundleId=com.example.exampleapp

The root causes of the exceptions could be anything, but these exceptions can be caught with try-catch blocks to avoid crashes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant