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

Host Link Could be Incorrect #223

Open
Mohammed-Quraishi opened this issue Mar 12, 2024 · 2 comments
Open

Host Link Could be Incorrect #223

Mohammed-Quraishi opened this issue Mar 12, 2024 · 2 comments

Comments

@Mohammed-Quraishi
Copy link

I keep getting the following when attempting to download all the gff and cds-fasta files for Pantoea from NCBI:

"ERROR: Download from NCBI failed: ConnectionError(MaxRetryError('HTTPSConnectionPool(host='ftp.ncbi.nih.gov', port=443): Max retries exceeded with url: /genomes/genbank/bacteria/assembly_summary.txt (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7fd4c69fcfe0>: Failed to resolve 'ftp.ncbi.nih.gov' ([Errno -3] Temporary failure in name resolution)"))'))"

Take note of the "host='ftp.ncbi.nih.gov'"

Code to recreate error:

ncbi-genome-download bacteria --output-folder inputs/genbank/Pantoea --flat-output --genera Pantoea -F gff,cds-fasta -s genbank --retries 3

I've tried the following to find the issue by pinging the host site as seen below

ping ftp.ncbi.nih.gov

And this outputs "ping: ftp.ncbi.nih.gov: Temporary failure in name resolution"

When I try to paste ftp.ncbi.nih.gov into my web browser, it doesn't work. It works only when I add .nlm after .ncbi (ftp.ncbi.nlm.nih.gov)

Could it be that the program has the wrong link set as host?

@Mohammed-Quraishi
Copy link
Author

I just found the -u or --uri option and I tried it with 'https://ftp.ncbi.nlm.nih.gov/genomes' and it worked perfectly!

Could you update the default uri to prevent other users from having this issue by default?

kblin added a commit that referenced this issue Jul 3, 2024
This closes issue #223

Signed-off-by: Kai Blin <[email protected]>
@kblin
Copy link
Owner

kblin commented Jul 3, 2024

While the other DNS domain works fine for me, this obviously makes sense and will be shipped with the next release. Thanks for your report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants