Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to load schema from certain URIs #422

Open
Lishang123 opened this issue Oct 15, 2024 · 1 comment
Open

Unable to load schema from certain URIs #422

Lishang123 opened this issue Oct 15, 2024 · 1 comment

Comments

@Lishang123
Copy link

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
  • Python version 3.11.9
@brunato
Copy link
Member

brunato commented Oct 19, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants