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
Thank you
-
Hi,
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.
Best,
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login