urequests OSError 6
Posted: Sat Jul 23, 2022 7:44 pm
Hi,
I'm trying to do a very simple request to GET data.
But I am getting this following error:
Has anyone got any idea what the problem could be? I've done a lot of googling but OS-6 error is returning nothing. Thanks in advance.
I'm trying to do a very simple request to GET data.
Code: Select all
import urequests
r = urequests.get("http://www.google.com")
print(r.content)
Code: Select all
>>>
>>>
>>>
raw REPL; CTRL-B to exit
>OK
MPY: soft reboot
raw REPL; CTRL-B to exit
>OK
Traceback (most recent call last):
File "<stdin>", line 5, in <module>
File "urequests.py", line 116, in get
File "urequests.py", line 55, in request
OSError: -6
>
MicroPython v1.19.1 on 2022-07-23; Raspberry Pi Pico W with RP2040
Type "help()" for more information.
>>>