Open Lishang123 opened 1 month ago
Hi, sorry but this seems to be a problem in your local environment, that probably doesn't see the root certificates, because the website xbrl.fasb.org has a valid certificate renewed weeks ago, and my checks don't show me any problems on loading that schema from remote
So you have to find a solution for your environment starting from the urllib.error.URLError
that is returned.
Description:
xmlschema
library cannot load schemas from certain URLs due to local issuer certificate.To reproduce:
Simply load a schema from URI using either XMLSchema11 or XMLSchema10
xmlschema.XMLSchema11('https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd')
Expected behavior:
The schema should be successfully loaded from URL.
Actualy behavior:
xmlschema
library reports the following error:urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)>
Environment:
xmlschema
3.4.2