trystwithperl has asked for the wisdom of the Perl Monks concerning the following question:

Hi,

We are seeing this error for a lot of URLs we're trying to load - "pattern match read eof at /usr/local/share/perl/5.10.1/MozRepl/Client.pm line 186".

The error is reported randomly and mostly after a number of URLs have been processed.

Our telnet buffer size is set to 20M.

We are running Firefox 8, MozRepl 1.1b3 and latest version of WWW::Mechanize::Firefox - 0.58

Any help is much appreciated.

  • Comment on WWW::Mechanize::Firefox - MozRepl : pattern match eof

Replies are listed 'Best First'.
Re: WWW::Mechanize::Firefox - MozRepl : pattern match eof
by Corion (Patriarch) on Dec 09, 2011 at 08:45 UTC

    I cannot help you there. That error seems to come from MozRepl::Client or somewhere else. Most likely, Firefox has a problem and needs to be restarted.

    If you can't provide code that easily replicates the problem to make it conveniently testable, you will need to work on your problem until you have such code.

      Thanks Corion. I'll work on a sample script and see if I can get this replicated and share the code. Am new to Perl and Mechanize::Firefox, is there a way I can get this or any other fatal error from WWW::Mechanize::Firefox ignored and have the script proceed. I have set autodie=>0 for the WWW::Mechanize::Firefox object, but that doesn't seem to be helping in this case. Is there a better option to get the errors ignored?

      Thanks for your help.

        As I already said, this error does not originate from WWW::Mechanize::Firefox.

        Maybe you want to look at eval and wrap the browser operations in it.