InvalidURIError

32 views
Skip to first unread message

Kevin Kornemann

unread,
Feb 25, 2013, 7:17:58 PM2/25/13
to www-mecha...@googlegroups.com
Submitting a button and getting the following URI error. Something about the URI is "bad" from the googling I've done. The question is how to get past this?? How to ignore the error and continue to the page?

Please see error:

URI::InvalidURIError: bad URI(is not URI?): CBMenu.jsp;jsessionid=0000FWXUFvwFz8oQcES43L6CCz1:-1
from /Users/kevin/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/uri/common.rb:176:in `split'
from /Users/kevin/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/uri/common.rb:211:in `parse'
from /Users/kevin/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/uri/common.rb:747:in `parse'
from /Users/kevin/.rvm/gems/ruby-1.9.3-p286@texas/gems/mechanize-2.5.1/lib/mechanize/http/agent.rb:621:in `rescue in resolve'
from /Users/kevin/.rvm/gems/ruby-1.9.3-p286@texas/gems/mechanize-2.5.1/lib/mechanize/http/agent.rb:618:in `resolve'
from /Users/kevin/.rvm/gems/ruby-1.9.3-p286@texas/gems/mechanize-2.5.1/lib/mechanize/http/agent.rb:214:in `fetch'
from /Users/kevin/.rvm/gems/ruby-1.9.3-p286@texas/gems/mechanize-2.5.1/lib/mechanize.rb:1229:in `post_form'
from /Users/kevin/.rvm/gems/ruby-1.9.3-p286@texas/gems/mechanize-2.5.1/lib/mechanize.rb:515:in `submit'
from /Users/kevin/.rvm/gems/ruby-1.9.3-p286@texas/gems/mechanize-2.5.1/lib/mechanize/form.rb:178:in `submit'
from (irb):69
from /Users/kevin/.rvm/gems/ruby-1.9.3-p286@texas/gems/railties-3.2.12/lib/rails/commands/console.rb:47:in `start'
from /Users/kevin/.rvm/gems/ruby-1.9.3-p286@texas/gems/railties-3.2.12/lib/rails/commands/console.rb:8:in `start'
from /Users/kevin/.rvm/gems/ruby-1.9.3-p286@texas/gems/railties-3.2.12/lib/rails/commands.rb:41:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'

Thanks in advance for any help.
Kevin

Andy Lester

unread,
Feb 25, 2013, 10:31:40 PM2/25/13
to www-mecha...@googlegroups.com

On Feb 25, 2013, at 6:17 PM, Kevin Kornemann <ke...@proofimaging.com> wrote:

> Submitting a button and getting the following URI error. Something about the URI is "bad" from the googling I've done. The question is how to get past this?? How to ignore the error and continue to the page?

You're working with the Ruby module "mechanize" which is inspired by the Perl module WWW::Mechanize. This mailing list is for the Perl WWW::Mechanize module.

I don't know if there's a Ruby Mechanize list. You may also want to try posting to StackOverflow.com

xoa

--
Andy Lester => an...@petdance.com => www.petdance.com => AIM:petdance

Reply all
Reply to author
Forward
0 new messages