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_VERIFY_LEAF_SIGNATURE when trying to access Lobid API via Node.js #342

Closed
stefandesu opened this issue Feb 15, 2023 · 2 comments
Closed

Comments

@stefandesu
Copy link

When trying to access Lobid API via Node.js (in my case through axios, but also reproducible with fetch), it throws an UNABLE_TO_VERIFY_LEAF_SIGNATURE error. As far as I understand from my research, this is a server configuration error where "the server is, incorrectly, not returning the intermediate certificates" (see nodejs/node#33705 (comment)). This is not an issue when the API is used in the browser as browser vendors include the relevant SSL Root CAs.

Easy example (requires Node.js 18 as it has native fetch):

fetch("https://lobid.org/gnd/4074335-4.json")
  .then((response) => {
    console.log(response)
  })
  .catch((error) => {
    console.error(error)
  })
@dr0i
Copy link
Member

dr0i commented Feb 15, 2023

Thx @stefandesu for the issue:
we had a new chain.txt for SSL certificates for an other domain, but didn't merge that chain.txt with the old one.
Merged it now so it should work again.
Sorry for that.

@stefandesu
Copy link
Author

Thanks, it works again! 👍

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