It happens when I use urllib.urequest.urlopen:
Code: Select all
import urllib
f=urllib.urequest.urlopen('https://letsencrypt.org/documents/isrg-cps-v4.2/')
Code: Select all
import urequests
response = urequests.get('https://letsencrypt.org/documents/isrg-cps-v4.2/')
Code: Select all
File "<stdin>", line 1, in <module>
OSError: -40
The only pattern I could find between the links that give this error is that they use a SSL certificate from Let's Encrypt. But I tried to connect to "https://www.freepik.com" and it is working, even though it uses the same type of certificate.
My os.uname() info is:
Code: Select all
(sysname='esp8266', nodename='esp8266', release='2.2.0-dev(9422289)', version='v
1.18 on 2022-01-17', machine='ESP module with ESP8266')
Edit:
Looks like this github issue might be related.