-
Notifications
You must be signed in to change notification settings - Fork 362
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
SocketException: Failed host lookup #1008
Comments
I have the same problem with 3.13.
Sometimes |
Also it looks like it's not just a skippable exception, it breaks a few things, for example I can't load images with |
I also opened an issue like this in the |
I'm getting this on 3.13 also. |
I think that this is a duplicate of dart-lang/sdk#53334 |
Same here run without debugging works fine but when debugging mode socket error |
Same here on Version 3.13.3 |
Can anyone solve the problem? Does anyone have the same problem with Dio? |
This is a Dart issue, not a The next hotfix releases of Dart and Flutter should happen tomorrow (fingers crossed) and will fix this issue. |
Steps to reproduce
Just make a network request using the
http
package.Also relevant when using other packages, such as
Dio
.The same error, and in the same versions of Flutter.
Therefore, I think they have the same root.
The bug is very critical, as already many communities of various applications complain about it.
I have given the simplest code example below.
The main essence is in the line:
This request throws an exception:
SocketException (SocketException: Failed host lookup: 'flutter.dev' (OS Error: ... , errno = 11004))
This error appears on ANY host of the many that I have tried.
That is, the problem is not in a particular host.
This problem is relevant for Windows (which discards many other similar problems that can be found on the Internet and which are associated with missing permissions on the Android system). It's not that problem.
I've reproduced this bug in the latest master as well as in the latest stable release.
On the Internet people advise to downgrade Flutter to version
3.10.5
, where this problem does not reproduce. I personally haven't tried it yet, but I suspect that all versions after3.10.5
have this bug.But downgrading to that version is not an option for me anyway.
Please fix this bug as soon as possible.
Yes, this exception is skippable, but it creates debugging inconvenience in many cases.
Moreover, this problem is relevant for many.
Thank you!
Expected results
No exception
Actual results
This request throws an exception:
SocketException (SocketException: Failed host lookup: 'flutter.dev' (OS Error: ... , errno = 11004))
Code sample
Code sample
Screenshots or Video
No response
Logs
No response
Flutter Doctor output
Doctor output
The text was updated successfully, but these errors were encountered: