Ncbi Entrez Server Issues
1
0
Entering edit mode
11.8 years ago
heath ▴ 20

Dear All, I am using entrez protein data base for searching a list 40 000 of protein ids, I set stop time (0.3) to keep ncbi server happy my program runs OK at first, but after running 1hrs or so..it shows

 File "snpinfo_new.py", line 31, in <module>
    fg=Entrez.efetch(db='protein', id=uid, rettype='fasta').read()
  File "/opt/python-2.7/lib/python2.7/site-packages/Bio/Entrez/__init__.py", line 113, in efetch
    return _open(cgi, variables)
  File "/opt/python-2.7/lib/python2.7/site-packages/Bio/Entrez/__init__.py", line 360, in _open
    raise exception
urllib2.HTTPError: HTTP Error 500: Internal Server Error

..how I fix this?

Thanks a lot!

biopython entrez ncbi protein dbsnp • 5.1k views
ADD COMMENT
1
Entering edit mode
ADD REPLY
0
Entering edit mode

Thanks a lot :-) !!

ADD REPLY
0
Entering edit mode
11.0 years ago
Peter 6.0k

Like any web-based API, you will sometimes get intermittent errors from Entrez - the standard approach would be to wrap the call in a try/except block and retry it (e.g. three retries, with a pause between each).

ADD COMMENT

Login before adding your answer.

Traffic: 1846 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6