Ran into some glitches after a FF upgrade, so I installed the latest versions of some of the modules, like MozRepl::Client. My W:M:F is a few months old still though.

I'm getting a weird new problem. Sometimes my program dies at the same place on the same page during a scrape/crawl. Sometimes it makes it past with no error. The page contents are semi-dynamic and there may be subtle changes between hits?

Here's the error:

(Sub)string is [[object Object] &#65533;&#65533;&#65533; {o] at /usr/l +ocal/share/perl5/MozRepl/RemoteObject.pm line 251, <STDIN> line 34. malformed JSON string, neither array, object, number, string or atom, +at character offset 1 (before "object Object] \x{2014}...") at /usr/l +ocal/share/perl5/MozRepl/RemoteObject.pm line 239 (in cleanup) command timed-out at /usr/local/share/perl5/MozRepl/C +lient.pm line 186

I think perhaps it's hitting some embedded UTF8? Shouldn't it be able to happily handle that? Any ideas on where to start looking to apply a fix? Thanks!


In reply to WWW::Mechanize::Firefox malformed JSON error? by tcordes

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.