[Biopython-dev] Bio.Entrez batch download example with retries

Vincent Davis vincent at vincentdavis.net
Mon Dec 1 02:04:22 UTC 2014


I submitted a pull request, let me know if this is what you had in mind.

Vincent Davis
720-301-3003

On Wed, Nov 26, 2014 at 3:11 AM, Peter Cock <p.j.a.cock at googlemail.com>
wrote:

> On Wed, Nov 26, 2014 at 1:37 AM, Vincent Davis <vincent at vincentdavis.net>
> wrote:
> >
> > On Tue, Nov 25, 2014 at 7:56 AM, Peter Cock <p.j.a.cock at googlemail.com>
> > wrote:
> >>
> >> Would anyone like to contribute an example script using Bio.Entrez
> >> with try/except handling of intermittent network errors like:
> >>
> >>  - HTTP Error 500: Internal Server Error
> >>  - HTTP Error 502: Bad Gateway
> >
> >
> > Are there other errors that would benefit
> > from the pause
> > /
> > retry?
> > Like...
> > 408: ('Request Timeout', 'Request timed out; try again later.')
> > 503: ('Service Unavailable', 'The server cannot process the request due
> to a
> > high load')
> > 504: ('Gateway Timeout', 'The gateway server did not receive a timely
> > response')
> >
> > Vincent Davis
>
> I would say any 5xx error was worth a retry.
>
> On the other hand, 4xx errors are probably our problem.
>
> Peter
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.open-bio.org/pipermail/biopython-dev/attachments/20141130/49376996/attachment.html>


More information about the Biopython-dev mailing list