How could i have broken uri?


#1

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.asp?NNumbertxt=227P (URI::InvalidURIError) from /usr/local/lib/ruby/1.8/uri/common.rb:481:inparse’
from /usr/local/lib/ruby/1.8/open-uri.rb:85:in open' from tails.rb:47:infaa’

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

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

Thanks,
–Colin


#2

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…