On a program that makes a GET request from api.openweathermap.org I am very often (but not always) getting the following error when using urequests.py:
Code: Select all
Connecting to network...
......... Connected!
network config: ('10.0.5.187', '255.255.255.0', '10.0.5.1', '10.0.5.1')
Traceback (most recent call last):
File "main.py", line 29, in <module>
File "urequests.py", line 116, in get
File "urequests.py", line 55, in request
OSError: -202
MicroPython v1.18 on 2022-01-17; ESP32 module with ESP32
Type "help()" for more information.
>>>
Any tip for this behaviour?
By the way, that line 55 of urequests.py I find this:
Code: Select all
ai = usocket.getaddrinfo(host, port, 0, usocket.SOCK_STREAM)