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:

my $mech = WWW::Mechanize::Chrome->new(port => 9222);
Same error. I followed this earlier post as well but no luck: https://www.perlmonks.org/?node_id=1203079

From the $TRACE it appears the port is not being set:

2020/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.
Any thoughts on this would be much appreciated!! Thanks! Ed

In reply to WWW::Mechanize::Chrome Can't Connect without knowing the port?! by dexmar

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.