bern
bern copied to clipboard
The Certificate of BERN website expired
See below warning message dated 28 Nov 2021 10:31am HK Time
SSLError: HTTPSConnectionPool(host='bern.korea.ac.kr', port=443): Max retries exceeded with url: /plain (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1129)')))
I am having the same issue - the certificate has expired.
I am having the same issue as well. Any fix available?
@mjeensung @donghyeonk do you have any idea for this?
@ghostintheshellarise @varsha1288 @sheldonsebastian @jhyuklee @mjeensung
Thank you for reporting.
Try this code.
import requests
response = requests.get("https://bern.korea.ac.kr/pubmed/29446767", verify=False)
print(response.json())
Try this, set the verify option to false to get it to work
def query_raw(text, url="https://bern.korea.ac.kr/plain"): """Biomedical entity linking API""" return requests.post(url, data={'sample_text': text},verify=False).json()
@donghyeonk does that means you don't expect to fix the website certificates? It was quite convenient to share and demo to collaborators.
Normally you should not even need to take care of certificates if you are using LetsEncrypt.
I used both pieces of codes given above by putting verify=False. I am getting the following error.
HTTPSConnectionPool(host='bern.korea.ac.kr', port=443): Max retries exceeded with url: /pubmed/29446767 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x000001F0918B1820>: Failed to establish a new connection: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond'))
also the website is down.
The website is on again. Sorry for the inconvenience. We do not have a plan to use https for now. For a more secure connection, hosting a local server might be a better choice + please use BERN2 (http://bern2.korea.ac.kr/) if you want a better & faster inference, which is our updated version of BERN with a better maintenance support.