[Catalyst] FYI on issue with Test::WWW::Mechanize and WWW::Mechanize

hkclark at gmail.com hkclark at gmail.com
Thu Apr 19 22:51:46 GMT 2007


In case other people run into this, 'make test' for
Test::WWW::Mechanize fails on my boxes if I'm using v1.22 of
WWW::Mechanize.  I get this error:

500 Can't connect to localhost:13432 (connect: Connection refused)

Once I dropped WWW::Mechanize back to v1.20 Test::WWW::Mechanize would
install without a force.

I have filed a bug report (see below).

Thanks,
Kennedy

-------------------------------------------------------------------------
I noticed that I'm having trouble when 'make test' run for
Test::WWW::Mechanize if anything after v1.20 of WWW::Mechanize is
installed (I have tried v1.21_01, v1.21_02, v1.21_03, v1.21_04, and
v1.22 and all have had issues).  I'm doing this on a freshly installed
CentOS 4 box (RHEL 4)... so Perl v5.8.5.

I'm not sure yet where the ultimate "root cause" lies, but it seems to
involve the following line in v1.21+ of WWW::Mechanize:

 my $content = $res->decoded_content;

If I change that back to what v1.20 had:

 my $content = $res->content;

Then everything is good.


Here is the error message I'm getting with v1.21+
of WWW::Mechanize:

[root at localhost Test-WWW-Mechanize-1.12]# prove t/follow_link_ok.t
t/follow_link_ok....NOK 4
#   Failed test 'Go after first link'
#   at t/follow_link_ok.t line 29.
# 500 Can't connect to localhost:13432 (connect: Connection refused)
# Content-Type: text/plain
# Client-Date: Sat, 14 Apr 2007 12:37:24 GMT
# Client-Warning: Internal response
#
# 500 Can't connect to localhost:13432 (connect: Connection refused)
t/follow_link_ok....FAILED test 4
      Failed 1/6 tests, 83.33% okay
Failed Test        Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
t/follow_link_ok.t                6    1  16.67%  4
Failed 1/1 test scripts, 0.00% okay. 1/6 subtests failed, 83.33% okay.
[root at localhost Test-WWW-Mechanize-1.12]#


Here is the output if comment out lines 1949 and 1950 and insert 'my
$content = $res->content;':

[root at localhost Test-WWW-Mechanize-1.12]# prove t/follow_link_ok.t
t/follow_link_ok....ok
All tests successful.
Files=1, Tests=6,  0 wallclock secs ( 0.06 cusr +  0.26 csys =  0.32 CPU)
[root at localhost Test-WWW-Mechanize-1.12]#



More information about the Catalyst mailing list