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

Omnicorp API fails with SSL error #561

Open
DnlRKorn opened this issue May 7, 2021 · 2 comments
Open

Omnicorp API fails with SSL error #561

DnlRKorn opened this issue May 7, 2021 · 2 comments
Assignees

Comments

@DnlRKorn
Copy link

DnlRKorn commented May 7, 2021

The following code causes an error in the Omnicorp API, which is catalogued here https://robokop.renci.org/ranker/apidocs/

import requests
r = requests.get("https://robokop.renci.org/ranker/api/omnicorp/MONDO:0005015/CHEBI:6801/", verify=False)
print(r)

#This should fail. The default behavior is verify=True.
r = requests.get("https://robokop.renci.org/ranker/api/omnicorp/MONDO:0005015/CHEBI:6801/")
print(r)

When this code was run on my machine, the following error occurred

raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='robokop.renci.org', port=443): Max retries exceeded with url: /ranker/api/omnicorp/MONDO:0005015/CHEBI:6801/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1123)')))

I've done some small amount of exploration on this issue. My findings indicate that somehow the SSL cert on the API backend is incorrectly set up (this is just from a little bit of exploration in the error message). Here is some documentation from Swagger on configuring an SSL cert https://support.smartbear.com/swaggerhub/docs/enterprise/config/ssl/certificate.html

@YaphetKG YaphetKG self-assigned this May 7, 2021
@patrickkwang
Copy link
Contributor

We had a similar issue with ICEES in the past, where Python failed to validate the SSL certificate (you can still reach this by using a browser). In that instance, RENCI IT updated the certificates and the problem was fixed.

@YaphetKG
Copy link
Contributor

Certificate is reconfigured. This is working now.

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

3 participants