My previously working perl script to fetch a given region suddenly has failed. I use the Bio::DB::EUtilities library as shown below.
use strict; use warnings; use Bio::DB::EUtilities; my $result = Bio::DB::EUtilities->new( -eutil => 'efetch', -db => 'nucleotide', -rettype => 'gb', -email => 'firstname.lastname@example.org' ); $result->set_parameters( -id => '568815579', -seq_start => '1', -seq_stop => '100', -strand => '2' ); $result->get_Response(-file => 'result.gb'); However, the above code works if I change the "rettype" parameter from gb to fasta. I tried the web (URL) version to debug and I noticed similar behavior. The same URL with FASTA as rettype worked, but if the rettype was changed to gb it failed with a bad gateway error.
This URL below works for the FASTA format
This URL for GB format fails with a Bad Gateway error after a few minutes
Can some one please advice on what I'm doing wrong, or if anything has changed recently in efetch usage?