Forum: Ruby how could i have broken uri?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Colin S. (Guest)
on 2007-06-25 09:59
(Received via mailing list)
My little spider/scraper thing happily iterated through a couple dozen
tail numbers and then said:


/usr/local/lib/ruby/1.8/uri/common.rb:432:in `split': bad URI(is not
URI?):
http://registry.faa.gov/aircraftinquiry/nnumsql.as...
 (URI::InvalidURIError)
        from /usr/local/lib/ruby/1.8/uri/common.rb:481:in `parse'
        from /usr/local/lib/ruby/1.8/open-uri.rb:85:in `open'
        from tails.rb:47:in `faa'

Can anyone see how that's no a bad URI?

(Darn, it was just getting to the fun stuff.)

Thanks,
--Colin
Colin S. (Guest)
on 2007-06-25 10:01
(Received via mailing list)
Oops, nevermind, I did a .strip before the call and now it is happy.
No idea how a space would have snuck on there. Damn FAA webmasters...
This topic is locked and can not be replied to.