Failure on urequests library OSError: no available NIC
Hello i'm trying to use the urequest library provided here, whit firmware 1.18.0:
but when i try to make a petition:
res = requests.get("https://jsonplaceholder.typicode.com/todos/1")```
i got an OSError: -1
and when i try to add headers to the petition i get OSError: no available NIC
Whats wrong with requests library? or which one is the updated one? i found 4 versions in differents sites
Did you check whether your WiPy is connected to wifi? If WiPy is not connected to wifi, you can receive oserror.
After being sure that your WiPy connected to wifi, please try your code.