bioruby/bioruby — Issue #43: Bug - Bio::Fetch.query
Author: shevegen
Created: 2011-12-15 13:45:11+00:00
State: open

require 'bio' # => false

entry = Bio::Fetch.query('hal', 'VNG1467G')

OpenURI::HTTPError: 404 Not Found
from /usr/lib/ruby/1.8/open-uri.rb:277:in `open_http'
from /usr/lib/ruby/1.8/open-uri.rb:616:in `buffer_open'
from /usr/lib/ruby/1.8/open-uri.rb:164:in `open_loop'
from /usr/lib/ruby/1.8/open-uri.rb:162:in `catch'
from /usr/lib/ruby/1.8/open-uri.rb:162:in `open_loop'
from /usr/lib/ruby/1.8/open-uri.rb:132:in `open_uri'
from /usr/lib/ruby/site_ruby/1.8/bio/command.rb:625:in `read_uri'
from /usr/lib/ruby/site_ruby/1.8/bio/io/fetch.rb:183:in `_get'
from /usr/lib/ruby/site_ruby/1.8/bio/io/fetch.rb:111:in `fetch'
from /usr/lib/ruby/site_ruby/1.8/bio/io/fetch.rb:128:in `query'
from (irb):12

______________________________________________________________
Hmm. Not sure where the error is. But it would be nice if OpenURI::HTTPError: 404 Not Found
errors could feedback the URL to the user, so that he can easily check manually.

Right now I have no idea what is going on.