Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: "Unexpected field value" error with WWW::Mechanize - SOLVED

by bobf (Monsignor)
on Jun 13, 2005 at 19:00 UTC ( [id://466255]=note: print w/replies, xml ) Need Help??


in reply to "Unexpected field value" error with WWW::Mechanize

I didn't track down the specific cause of this error, but upgrading to WWW::Mech 1.12 (as well as several of its dependencies) solved the problem and the test script now runs without error.

Many thanks to everyone that replied to this thread and helped test and troubleshoot, as well as davido and planetscape for their help in the cb.

Output from the test script (error free!):

all forms: $VAR1 = [ bless( { 'inputs' => [ bless( { 'value_name' => 'in', 'value' => '', 'size' => '35', 'type' => 'text', 'name' => 'query' }, 'HTML::Form::TextInput' ), bless( { 'menu' => [ { 'seen' => '1', 'value' => 'al +l', 'name' => 'All +' }, { 'value' => 'mo +dule', 'name' => 'Mod +ules' }, { 'value' => 'di +st', 'name' => 'Dis +tributions' }, { 'value' => 'au +thor', 'name' => 'Aut +hors' } ], 'current' => 0, 'type' => 'option', 'name' => 'mode' }, 'HTML::Form::ListInput' ), bless( { 'value_name' => '', 'value' => 'CPAN Search', 'type' => 'submit' }, 'HTML::Form::SubmitInput' ) ], 'enctype' => 'application/x-www-form-urlencoded', 'method' => 'GET', 'attr' => { 'class' => 'searchbox', 'method' => 'get', 'name' => 'f' }, 'action' => bless( do{\(my $o = 'http://search.cpan +.org/search')}, 'URI::http' ) }, 'HTML::Form' ) ]; current form: $VAR1 = bless( { 'inputs' => [ bless( { 'value_name' => 'in', 'value' => 'mechanize', 'size' => '35', 'type' => 'text', 'name' => 'query' }, 'HTML::Form::TextInput' ), bless( { 'menu' => [ { 'seen' => '1', 'value' => 'all' +, 'name' => 'All' }, { 'value' => 'modu +le', 'name' => 'Modul +es' }, { 'value' => 'dist +', 'name' => 'Distr +ibutions' }, { 'value' => 'auth +or', 'name' => 'Autho +rs' } ], 'current' => 0, 'type' => 'option', 'name' => 'mode' }, 'HTML::Form::ListInput' ), bless( { 'value_name' => '', 'value' => 'CPAN Search', 'type' => 'submit' }, 'HTML::Form::SubmitInput' ) ], 'enctype' => 'application/x-www-form-urlencoded', 'method' => 'GET', 'attr' => { 'class' => 'searchbox', 'method' => 'get', 'name' => 'f' }, 'action' => bless( do{\(my $o = 'http://search.cpan.o +rg/search')}, 'URI::http' ) }, 'HTML::Form' ); content: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859 +-1"> <link rel="stylesheet" href="/s/style.css" type="text/css"> <title>search.cpan.org: The CPAN Search Site</title> </head> <body id="cpansearch"> <center><div class="logo"><a href="/"><img src="/s/img/cpan_banner.png +" alt="CPAN"></a></div></cente r> <div class="menubar"> <a href="/">Home</a> &middot; <a href="/author/">Authors</a> &middot; <a href="/recent">Recent</a> &middot; <a href="http://log.perl.org/cpansearch/">News</a> &middot; <a href="/mirror">Mirrors</a> &middot; <a href="/faq.html">FAQ</a> &middot; <a href="/feedback">Feedback</a> </div> <form method="get" action="/search" name="f" class="searchbox"> <input type="text" name="query" value="mechanize" size="35"> <br>in <select name="mode"> <option value="all">All</option> <option value="module" >Modules</option> <option value="dist" >Distributions</option> <option value="author" >Authors</option> </select>&nbsp;<input type="submit" value="CPAN Search"> </form> <br><div class=t4> <small> Results <b>1</b> - <b>10</b> of <b>1739</b> Found</small></div> <div class=pages><table width="100%"><tr> <td><small> <b>1</b> &middot; <a href="/search?m=all&q=mechanize&s=11">2</a> &middot; <a href="/search?m=all&q=mechanize&s=21">3</a> &middot; <a href="/search?m=all&q=mechanize&s=31">4</a> &middot; <a href="/search?m=all&q=mechanize&s=41">5</a> &middot; <a href="/search?m=all&q=mechanize&s=51">6</a> &middot; <a href="/search?m=all&q=mechanize&s=11">Next &gt;&gt;</a> </small></td> <td align=right><small><b>Page Size</b>: <a href="/search?m=all&q=mechanize&s=1&n=10">10</a>&nbsp; <a href="/search?m=all&q=mechanize&s=1&n=20">20</a>&nbsp; <a href="/search?m=all&q=mechanize&s=1&n=50">50</a>&nbsp; <a href="/search?m=all&q=mechanize&s=1&n=100">100</a>&nbsp; </small></td></tr></table> </div> <!--results--> <!--item--> <p><a href="/author/ABELTJE/Win32-IE-Mechanize-0.008/lib/Win32/IE/Me +chanize.pm"><b>Win32::IE::Mech anize</b></a> <br /><small>Like &quot;the mech&quot; but with IE as user-agent</smal +l> <br /><small> <a href="/~abeltje/Win32-IE-Mechanize-0.008/">Win32-IE +-Mechanize-0.008</a> - <span class=date>09 Jan 2005</span> - <a href="/~abeltje/">Abe Timmerman</a> </small> <!--end item--> <!--item--> <p><a href="/author/CORION/WWW-Mechanize-Shell-0.36/lib/WWW/Mechaniz +e/Shell.pm"><b>WWW::Mechanize: :Shell</b></a> <br /><small>An interactive shell for WWW::Mechanize</small> <br /><small> <a href="/~corion/WWW-Mechanize-Shell-0.36/">WWW-Mecha +nize-Shell-0.36</a> - <span class=date>04 Dec 2004</span> - <a href="/~corion/">Max Maischein</a> </small> <!--end item--> <!--item--> <p><a href="/author/ESUMMERS/WWW-Mechanize-Sleepy-0.5/Sleepy.pm"><b> +WWW::Mechanize::Sleepy</b></a> <br /><small>A Sleepy Mechanize Agent</small> <br /><small> <a href="/~esummers/WWW-Mechanize-Sleepy-0.5/">WWW-Mec +hanize-Sleepy-0.5</a> - <span class=date>30 Aug 2003</span> - <a href="/~esummers/">Ed Summers</a> </small> <!--end item--> <!--item--> <p><a href="/author/LBROCARD/WWW-Mechanize-Timed-0.42/lib/WWW/Mechan +ize/Timed.pm"><b>WWW::Mechaniz e::Timed</b></a> <br /><small>Time Mechanize requests</small> <br /><small> <a href="/~lbrocard/WWW-Mechanize-Timed-0.42/">WWW-Mec +hanize-Timed-0.42</a> - <span class=date>23 Jan 2004</span> - <a href="/~lbrocard/">Leon Brocard</a> </small> <!--end item--> <!--item--> <p><a href="/author/CORION/Bundle-WWW-Mechanize-Shell-0.29/lib/Bundl +e/WWW/Mechanize/Shell.pm"><b>B undle::WWW::Mechanize::Shell</b></a> <br /><small>install all optional modules for WWW::Mechanize::Shell</s +mall> <br /><small> <a href="/~corion/Bundle-WWW-Mechanize-Shell-0.29/">Bu +ndle-WWW-Mechanize-Shell-0.29< /a> - <span class=date>03 Aug 2003</span> - <a href="/~corion/">Max Maischein</a> </small> <!--end item--> <!--item--> <p><a href="/author/PETDANCE/WWW-Mechanize-Cached-1.32/Cached.pm"><b +>WWW::Mechanize::Cached</b></a > <br /><small>Cache response to be polite</small> <br /><small> <a href="/~petdance/WWW-Mechanize-Cached-1.32/">WWW-Me +chanize-Cached-1.32</a> - <span class=date>11 Apr 2004</span> - <a href="/~petdance/">Andy Lester</a> </small> <!--end item--> <!--item--> <p><a href="/author/CORION/WWW-Mechanize-FormFiller-0.05/lib/WWW/Mec +hanize/FormFiller.pm"><b>WWW:: Mechanize::FormFiller</b></a> <br /><small>framework to automate HTML forms</small> <br /><small> <a href="/~corion/WWW-Mechanize-FormFiller-0.05/">WWW- +Mechanize-FormFiller-0.05</a> - <span class=date>09 Jun 2003</span> - <a href="/~corion/">Max Maischein</a> </small> <!--end item--> <!--item--> <p><a href="/author/SPOON/WWW-Yahoo-Groups-1.91/lib/WWW/Yahoo/Groups +/Mechanize.pm"><b>WWW::Yahoo:: Groups::Mechanize</b></a> <br /><small>Control WWW::Mechanize for WYG.</small> <br /><small> <a href="/~spoon/WWW-Yahoo-Groups-1.91/">WWW-Yahoo-Gro +ups-1.91</a> - <span class=date>01 Dec 2003</span> - <a href="/~spoon/">Iain Truskett (see Andy Lester)</a> </small> <!--end item--> <!--item--> <p><a href="/author/LBROCARD/Test-WWW-Mechanize-Catalyst-0.33/lib/Te +st/WWW/Mechanize/Catalyst.pm"> <b>Test::WWW::Mechanize::Catalyst</b></a> <br /><small>Test::WWW::Mechanize for Catalyst</small> <br /><small> <a href="/~lbrocard/Test-WWW-Mechanize-Catalyst-0.33/" +>Test-WWW-Mechanize-Catalyst-0 .33</a> - <span class=date>07 Jun 2005</span> - <a href="/~lbrocard/">Leon Brocard</a> </small> <!--end item--> <!--item--> <p><a href="/author/CPANPERL/WWW-Mechanize-Frames-0.03/lib/WWW/Mecha +nize/Frames.pm"><b>WWW::Mechan ize::Frames</b></a> <br /><small>Perl extension for WWW:Mechanize allowing automatic frame +s download.</small> <br /><small> <a href="/~cpanperl/WWW-Mechanize-Frames-0.03/">WWW-Me +chanize-Frames-0.03</a> - <span class=date>17 Mar 2005</span> - <a href="/~cpanperl/">Nick Stoianov</a> </small> <!--end item--> <!--end results--> <br> <center> <b>1</b> &middot; <a href="/search?m=all&q=mechanize&s=11">2</a> &middot; <a href="/search?m=all&q=mechanize&s=21">3</a> &middot; <a href="/search?m=all&q=mechanize&s=31">4</a> &middot; <a href="/search?m=all&q=mechanize&s=41">5</a> &middot; <a href="/search?m=all&q=mechanize&s=51">6</a> &middot; <a href="/search?m=all&q=mechanize&s=11">Next &gt;&gt;</a> </center> <div class="footer"> hosted by <a href="http://www.perl.org/siteinfo.html">perl.org</a>, ha +rdware provided by<br/> <a href="http://www.bizrate.com"><img src="/s/img/bizrate_logo.png"></ +a> </div> <!-- Mon Jun 13 18:42:29 2005 GMT (0.406239032745361) @x15 --> </body> </html>

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://466255]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2024-04-20 01:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found