bern icon indicating copy to clipboard operation
bern copied to clipboard

The Certificate of BERN website expired

Open ghostintheshellarise opened this issue 3 years ago • 8 comments

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)')))

ghostintheshellarise avatar Nov 28 '21 02:11 ghostintheshellarise

I am having the same issue - the certificate has expired.

varsha1288 avatar Nov 29 '21 21:11 varsha1288

I am having the same issue as well. Any fix available?

sheldonsebastian avatar Nov 29 '21 22:11 sheldonsebastian

@mjeensung @donghyeonk do you have any idea for this?

jhyuklee avatar Nov 30 '21 03:11 jhyuklee

@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())

donghyeonk avatar Nov 30 '21 13:11 donghyeonk

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()

varsha1288 avatar Nov 30 '21 15:11 varsha1288

@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.

vemonet avatar Dec 07 '21 12:12 vemonet

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.

JaskaranKaurGill avatar Feb 12 '22 13:02 JaskaranKaurGill

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.

jhyuklee avatar Feb 16 '22 00:02 jhyuklee