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

Example never returns from stream.nex().await #32

Open
brandonmarzolf opened this issue Mar 7, 2023 · 4 comments
Open

Example never returns from stream.nex().await #32

brandonmarzolf opened this issue Mar 7, 2023 · 4 comments

Comments

@brandonmarzolf
Copy link

The only modification I made to the example code provided in the docs is the SERVICE_NAME to a known service on my network.

Running the program, it never returned any output.

I then commented out the "while loop" and added a single manual entry for the next item and a print statement right before and right after it. This second print statement is never reached.

It looks like "stream.next().await" never returns.

@DJSdev
Copy link

DJSdev commented Jan 6, 2024

I had the same issue and I think I figured out the problem, at least for me.

If you have multiple network interfaces on your machine, try disabling all, but the one connected to the network you want to send requests on.

With wireshark, I found the mDNS queries were being sent via my Hyper V virtual NIC, which was unexpected. Once I disabled my additional NICs, then it started working just fine.

@granitDev
Copy link

Same issue. If the network devices are the issue, that is an unacceptable bug. Disabling network devices is either not possible or inappropriate for a given circumstance. This also shouldn't be necessary. Every other library, crate, or shell command I use is otherwise able to access the internet, why is this library different in this regard?

@DJSdev
Copy link

DJSdev commented Mar 1, 2024

Not sure why the thumbs down when I was just trying to point out the problem to the maintainer, but okay then.

@rektdeckard
Copy link

I'm having the same issue on Windows. Disabled all but my primary ethernet interface, and still no joy.

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

No branches or pull requests

4 participants