Displaying 4 results from an estimated 4 matches for "httpinternalservererror".
2012 Aug 02
2
Handling HTTP 500 errors
Hey guys,
How do you handle HTTP 500 errors with Mechanize?
After researching the web I thought something like this would work:
begin
Mechanize.new.get(url_which_returns_500)
rescue Net::HTTPInternalServerError
puts "Life is awesome. Let''s move on"
end
Anyways, the code in the rescue block will never be executed.
Can you guys help me out?
Kenny
2012 Feb 16
3
Mechanize::ResponseCodeError: 500
...m our server to an online reservation
> system. The url is https://secure.mdausa.org/donate/
> It works in my browser however using mechanize following error appears:
>
> /Library/Ruby/Gems/1.8/gems/mechanize-2.0.1/lib/mechanize/http/agent.rb:241:in
> `fetch'': 500 => Net::HTTPInternalServerError (Mechanize::ResponseCodeError)
> from /Library/Ruby/Gems/1.8/gems/mechanize-2.0.1/lib/mechanize.rb:628:in
> `post_form''
> from /Library/Ruby/Gems/1.8/gems/mechanize-2.0.1/lib/mechanize.rb:520:in
> `submit''
> from
> /Library/Ruby/Gems/1.8/gems/mechanize-2.0.1/lib...
2010 Oct 20
2
Mechanize::ResponseCodeError: 500
...ora)
response-header: date => Wed, 20 Oct 2010 19:21:53 GMT
response-header: content-length => 72
response-header: cache-control => no-store, no-cache, must-revalidate,
post-check=0, pre-check=0
response-header: pragma => no-cache
status: 500
Mechanize::ResponseCodeError: 500 => Net::HTTPInternalServerError
from /Library/Ruby/Gems/1.8/gems/mechanize-1.0.0/lib/mechanize.rb:259:in
`get''
from (irb):26
Could you realize what is wrong?
p.s. I also changed agent type.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/mechaniz...
2007 Oct 05
3
basic_auth problem since 0.6.9
....6e
D, [2007-10-05T12:46:45.350311 #4958] DEBUG -- : response-header:
content-length => 1510
D, [2007-10-05T12:46:45.350369 #4958] DEBUG -- : response-header: tcn =>
choice, choice
I, [2007-10-05T12:46:45.362057 #4958] INFO -- : status: 500
WWW::Mechanize::ResponseCodeError: 500 => Net::HTTPInternalServerError
from
/usr/local/lib/ruby/gems/1.8/gems/mechanize-0.6.10/lib/mechanize.rb:185:in
`get''
from (irb):11
Thanks,
Gary