PICO W fails socket.getaddrinfo #10033
Answered
by
peterhinch
miltmobley
asked this question in
Using MicroPython
-
I am following the steps in RPi's document 'Connecting to the internet with ... pico w'. I can get down to the line: After a few seconds I get an exception message with cause 'OSError: -2' Due to the delay, I suspect this is a timeout. If so, what can I do about it? |
Beta Was this translation helpful? Give feedback.
Answered by
peterhinch
Nov 21, 2022
Replies: 1 comment 1 reply
-
Well, this line works on my Pico W, returning instantly, so it seems your DNS query is failing. I would suspect a network problem: can the Pico access the internet? Is a DNS server configured? |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
peterhinch
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Well, this line works on my Pico W, returning instantly, so it seems your DNS query is failing. I would suspect a network problem: can the Pico access the internet? Is a DNS server configured?