-
Notifications
You must be signed in to change notification settings - Fork 26.8k
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
Flutter test throws on Failed host lookup when debugging #137629
Comments
Thanks for the report @thumbert I tried below code sample but with debug, I was able to get the test passed with 200 as status code.
|
@thumbert this should be fixed on beta (upcoming stable). So either try switching to beta or as an alternative workaround you can try the following:
Then debugger should no longer stop inside http/IO internals. |
Same on my side.. was working in previous version and i updated recently to 3.13.9 and it appeared, as far as i can remember it was fixed in previous version already.. |
@mraleph Confirming that your suggested "alternative workaround" fixes the issue. Thank you very much. Very useful. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Is there an existing issue for this?
Steps to reproduce
Unfortunately I can only describe the problem verbally. It is very much similar to https://github.com/dart-lang/sdk/issues/53334
If I run this file with flutter it runs OK. But if I start a debugging session, it throws inside the test.
If I run the same file with dart (using package test), it runs OK and it stops on the break point too (no issue!).
I don't understand what is flutter test doing that is different than a dart test in this regard.
The server name is a load balancer. If I run the flutter test with the underlying IP address of one of the servers behind the balancer, it does not throw. Because I can use the IP address directly, I have a workaround, but it would be nice if flutter test will do the same thing as dart test and not throw in debug mode.
Thanks,
T
Expected results
See above
Actual results
See above
Code sample
Code sample
[Paste your code here]
Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Logs
Logs
[Paste your logs here]
Flutter Doctor output
Doctor output
The text was updated successfully, but these errors were encountered: