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

The Certificate of BERN website expired #47

Open
ghostintheshellarise opened this issue Nov 28, 2021 · 8 comments
Open

The Certificate of BERN website expired #47

ghostintheshellarise opened this issue Nov 28, 2021 · 8 comments

Comments

@ghostintheshellarise
Copy link

ghostintheshellarise commented Nov 28, 2021

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 ghostintheshellarise changed the title The Certificate of website expired The Certificate of BERN website expired Nov 28, 2021
@varsha1288
Copy link

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

@sheldonsebastian
Copy link

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

@jhyuklee
Copy link
Member

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

@donghyeonk
Copy link
Collaborator

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

@varsha1288
Copy link

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

@vemonet
Copy link

vemonet commented Dec 7, 2021

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

@JaskaranKaurGill
Copy link

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.

@jhyuklee
Copy link
Member

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.

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

7 participants