urequests OSError 6

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
jordanscff
Posts: 1
Joined: Sat Jul 23, 2022 7:41 pm

urequests OSError 6

Post by jordanscff » Sat Jul 23, 2022 7:44 pm

Hi,

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)
But I am getting this following error:

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.
>>> 
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.

Post Reply