dexmar has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks!
I have a Centos 8 VM running on my local machine with a fresh install of Chrome 87.0.4270.0 and WWW::Mechanize::Chrome installed to version 0.60. In trying the dump-links.pl sample project I get this error:
Can't connect without knowing the port?! 0 at /usr/local/share/perl5/C +hrome/DevToolsProtocol.pm line 316.
I tried setting the port as per the docs:
Same error. I followed this earlier post as well but no luck: https://www.perlmonks.org/?node_id=1203079my $mech = WWW::Mechanize::Chrome->new(port => 9222);
From the $TRACE it appears the port is not being set:
Any thoughts on this would be much appreciated!! Thanks! Ed2020/09/26 13:02:28 Spawning $VAR1 = [ '/usr/bin/google-chrome', '--remote-debugging-port=0', '--enable-automation', '--no-first-run', '--mute-audio', '--no-zygote', '--no-sandbox', '--safebrowsing-disable-auto-update', '--disable-background-networking', '--disable-breakpad', '--disable-client-side-phishing-detection', '--disable-component-update', '--disable-hang-monitor', '--disable-prompt-on-repost', '--disable-sync', '--disable-translate', '--disable-web-resources', '--disable-default-apps', '--disable-infobars', '--disable-popup-blocking', '--disable-gpu', '--disable-save-password-bubble', 'about:blank' ]; 2020/09/26 13:02:28 Spawned child as 7191 Can't connect without knowing the port?! 0 at /usr/local/share/perl5/C +hrome/DevToolsProtocol.pm line 316.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: WWW::Mechanize::Chrome Can't Connect without knowing the port?!
by Corion (Patriarch) on Sep 26, 2020 at 20:40 UTC | |
by dexmar (Initiate) on Sep 26, 2020 at 21:05 UTC | |
by Corion (Patriarch) on Sep 27, 2020 at 05:59 UTC |