Subject: | MozRepl::RemoteObject: TypeError: invalid 'in' operand obj |
new() fails immediately with:
MozRepl::RemoteObject: TypeError: invalid 'in' operand obj at /usr/local/share/perl/5.24.1/MozRepl/RemoteObject.pm line 849.
More verbosely:
$ PERL5OPT=MCarp=verbose perl -MWWW::Mechanize::Firefox -e 'WWW::Mechanize::Firefox->new'
MozRepl::RemoteObject: TypeError: invalid 'in' operand obj at /usr/local/share/perl/5.24.1/MozRepl/RemoteObject.pm line 849.
MozRepl::RemoteObject::js_call_to_perl_struct(MozRepl::RemoteObject=HASH(0x57f2ff7c), "repl.dive(4,[\"linkedBrowser\",\"contentWindow\",\"document\",\"body"..., undef) called at /usr/local/share/perl/5.24.1/MozRepl/RemoteObject.pm line 288
MozRepl::RemoteObject::unjson(MozRepl::RemoteObject=HASH(0x57f2ff7c), "repl.dive(4,[\"linkedBrowser\",\"contentWindow\",\"document\",\"body"...) called at /usr/local/share/perl/5.24.1/MozRepl/RemoteObject/Methods.pm line 299
MozRepl::RemoteObject::Methods::dive(MozRepl::RemoteObject::Instance=HASH(0x585783f4), "linkedBrowser", "contentWindow", "document", "body") called at /usr/local/share/perl/5.24.1/WWW/Mechanize/Firefox.pm line 222
WWW::Mechanize::Firefox::new("WWW::Mechanize::Firefox") called at -e line 1
Instrumenting RemoteObject.pm, the more complete error seems to be:
{"status":"error","name":"TypeError","message":"invalid 'in' operand obj","command":"repl.dive(4,[\"linkedBrowser\",\"contentWindow\",\"document\",\"body\"])\n"}
firefox-esr:i386/stretch 52.9.0esr-1~deb9u1 on Debian.
Thanks in advance for your attention. This module has been invaluable the past many years; I'm hoping this is an easy fix.