Skip Menu |

This queue is for tickets about the WWW-Mechanize-Chrome CPAN distribution.

Report information
The Basics
Id: 131617
Status: resolved
Priority: 0/
Queue: WWW-Mechanize-Chrome

People
Owner: Nobody in particular
Requestors: Chris.Denley [...] experian.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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
Date: Thu, 30 Jan 2020 17:47:01 +0000
Subject: RE: [rt.cpan.org #131617] AutoReply: 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>
Nevermind, I was missing Protocol::WebSocket::Frame Show quoted text
-----Original Message----- From: Bugs in WWW-Mechanize-Chrome via RT <bug-WWW-Mechanize-Chrome@rt.cpan.org> Sent: Thursday, January 30, 2020 10:22 AM To: Denley, Chris <Chris.Denley@experian.com> Subject: [rt.cpan.org #131617] AutoReply: Can't locate object method "type" via package "Chrome::DevToolsProtocol::Transport::NetAsync" Greetings, This message has been automatically generated in response to the creation of a trouble ticket regarding: "Can't locate object method "type" via package "Chrome::DevToolsProtocol::Transport::NetAsync"", a summary of which appears below. There is no need to reply to this message right now. Your ticket has been assigned an ID of [rt.cpan.org #131617]. Your ticket is accessible on the web at: https://rt.cpan.org/Ticket/Display.html?id=131617 Please include the string: [rt.cpan.org #131617] in the subject line of all future correspondence about this issue. To do so, you may reply to this message. Thank you, bug-WWW-Mechanize-Chrome@rt.cpan.org ------------------------------------------------------------------------- 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
Thank you for reporting this, and also reporting the resolution! I should still investigate how to better list missing modules for a backend.