Skip to content

Omnicorp API fails with SSL error #561

@DnlRKorn

Description

@DnlRKorn

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions