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

Amp\Dns\TimeoutException #31

Open
jclee100 opened this issue Mar 29, 2021 · 3 comments
Open

Amp\Dns\TimeoutException #31

jclee100 opened this issue Mar 29, 2021 · 3 comments
Labels

Comments

@jclee100
Copy link

This may be the issue with my set up and not a bug, but I am not sure where I can ask for help.

I am following the basic example here: https://amphp.org/websocket-client/

Running on my Windows 10 Dev PC.

I am getting Uncaught Amp\MultiReasonException: Multiple errors encountered; use Amp\MultiReasonException::getReasons() to retrieve the array of exceptions thrown in \vendor\amphp\amp\lib\functions.php:540

Looking into the error, I found some issue with my DNS.
Amp\Dns\TimeoutException No response for 'ftx.com' (A) from any nameserver within 3000 ms after 2 attempts, tried udp://192.168.1.1:53, udp://192.168.1.1:53

Not sure what I can do to resolve this. I have no problems running a websocket client on Javascript.

@kelunik
Copy link
Member

kelunik commented Mar 29, 2021

@jclee100 You can open issues here or on StackOverflow, either is fine.

Is 192.168.1.1 the expected DNS server for your setup? You can check the system config following this article.

@jclee100
Copy link
Author

jclee100 commented Apr 9, 2021

ipconfig /all
returns
DNS Servers . . . . . . . . . . . : 8.8.8.8

@kelunik
Copy link
Member

kelunik commented Apr 9, 2021

So it's indeed querying the wrong server. Could you have a look at the registry and see where 8.8.8.8 and 192.168.1.1 are listed? You can find the keys Amp looks for here: https://github.com/amphp/dns/blob/920eb4786ba90c4241ca2dc09d855c6f7b5aed3a/lib/WindowsConfigLoader.php#L23

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

No branches or pull requests

2 participants