how could i have broken uri?

C

Colin Summers

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: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
 
C

Colin Summers

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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,965
Messages
2,570,148
Members
46,710
Latest member
FredricRen

Latest Threads

Top