You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. please tell me the urequests library, is it different for esp32 and esp8266? for esp32 it works with both http and https, and for esp8266 only http, with https error OSError 40, has anyone encountered this phenomenon? Thank you
I have a similar problem with urequests.get(url) function on ESP32!
If I pass a url that is not HTTPS then I can get the file. However, when I pass a url with HTTPS I get the following error:
>>> myFile = urequests.get('https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "urequests.py", line 116, in get
File "urequests.py", line 62, in request
OSError: [Errno 12] ENOMEM
>>>
I have a similar problem with urequests.get(url) function on ESP32!
If I pass a url that is not HTTPS then I can get the file. However, when I pass a url with HTTPS I get the following error:
I found a workaround for this problem. Instead of using urequests.get(url) I used urequests.request('GET', url).
This solved the problem with downloading from HTTPS urls.
Activity
dpgeorge commentedon Feb 2, 2022
It is the same.
Can you provide a minimal example that has this error on esp8266?
9avel commentedon Feb 3, 2022
This is the actual code I am using.
If http, everything works fine, https immediately error.
Maybe I'm doing something wrong?
Thanks for the help.
maskmly commentedon Feb 4, 2022
I have a similar problem with
urequests.get(url)function on ESP32!If I pass a url that is not HTTPS then I can get the file. However, when I pass a url with HTTPS I get the following error:
Fr3nky88 commentedon Feb 28, 2022
I'm following because i have the same problem with HTTPS, i fleshed the last firmware on the esp32 but still have the problem.
maskmly commentedon Apr 8, 2022
I found a workaround for this problem. Instead of using
urequests.get(url)I usedurequests.request('GET', url).This solved the problem with downloading from HTTPS urls.
jimmo commentedon Jul 21, 2022
This issue is now being tracked in #8940.
Merge pull request micropython#8251 from BrainBoardz/main