Date: | Thu, 30 Jan 2020 15:35:53 +0000 |
Subject: | Can't locate object method "type" via package "Chrome::DevToolsProtocol::Transport::NetAsync" |
To: | "bug-WWW-Mechanize-Chrome [...] rt.cpan.org" <bug-WWW-Mechanize-Chrome [...] rt.cpan.org> |
From: | "Denley, Chris" <Chris.Denley [...] experian.com> |
When I try to install, the test keeps failing. This error message shows everywhere, although t/49-launch.t seems to be the only failure:
Failed on Chrome version 'Chromium/79.0.3945.130': Can't locate object method "type" via package "Chrome::DevToolsProtocol::Transport::NetAsync" at /root/.cpan/build/WWW-Mechanize-Chrome-0.44-by94RE/blib/lib/WWW/Mechanize/Chrome.pm line 826.
The issue seems to be a non-existent "type" method is being called. If I replace this:
return $t->new->type || 'websocket';
with this:
my $new = $t->new;
if($new->can('type')) {
return $new->type || 'websocket';
}
return 'websocket';
then the problem seems to go away
Linux usaltapdps01 4.12.14-95.45-default #1 SMP Wed Dec 11 13:09:13 UTC 2019 (12c8180) x86_64 x86_64 x86_64 GNU/Linux
Perl 5.18.2