jkanko has asked for the wisdom of the Perl Monks concerning the following question:
I'm not sure if I should get rid of a "die on error" or if there is a handler I can use to get past this...(Sub)string is [tle>\n\n\n \n \n <] at +C:/Perl/si te/lib/MozRepl/RemoteObject.pm line 191, <DATA> line 1. invalid character encountered while parsing JSON string, at character +offset 121 (before "\t\n\t\t\n\t\t<meta ...") at C:/Perl/site/lib/MozRepl/Remote +Object.pm line 181
I intermittently get the error on the initial page load and also after the follow link. The page is using embedded js on aspx...The code is fairly simple: $mech = WWW::Mechanize::FireFox->new( autocheck => 1 ); $mech->get( " __fooz__barz__ " ); $mech->follow_link( text => 'View all' );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: mozrepl invalid characters
by Corion (Patriarch) on May 12, 2010 at 20:40 UTC | |
by jkanko (Initiate) on May 13, 2010 at 00:14 UTC |