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

Error getting latest chebi version #49

Open
kkaris opened this issue Nov 27, 2024 · 0 comments
Open

Error getting latest chebi version #49

kkaris opened this issue Nov 27, 2024 · 0 comments

Comments

@kkaris
Copy link
Contributor

kkaris commented Nov 27, 2024

Error can be reproduced by:

import bioversions
bioversions.get_version('chebi')

Relevant part of the error (the full traceback is 200+ lines):

ConnectionError: HTTPConnectionPool(host='ftp.ebi.ac.uk', port=80): Max retries exceeded with url: /pub/databases/chebi/ontology/chebi.obo (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f5dcb7bcb50>: Failed to establish a new connection: [Errno 111] Connection refused'))

One possible lead on this issue I think is the port used. Because we use port 80 according to the traceback, the full URL should be http://ftp.ebi.ac.uk/pub/databases/chebi/ontology/chebi.obo, note the http here because port 80 is used, while going to that URL in the browser, you're redirected to https://ftp.ebi.ac.uk/pub/databases/chebi/ontology/chebi.obo, again note https which implies port 443 should be used. My guess here is that somewhere, the http URL is requested, but that it's only the https URL actually works, hence the ConnectionError. I haven't been able to find where the http request would come from though.

My setup:

bioversions version: 0.5.560 (I run a git cloned setup)
Python version: 3.11.7
OS (output from uname -a): Linux 5.15.0-126-generic #136~20.04.1-Ubuntu SMP Thu Nov 14 16:38:05 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

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

1 participant