skip to Main Content

I have been using the chrome-php & headless-chromium libraries for few months without any issues but now I get this error. Does anyone know why this would start happening? Thanks.

Fatal error: Uncaught WrenchExceptionHandshakeException: No 
accept header receieved on handshake response in         
C:Userskamurjvendorchrome-phpwrenchsrcProtocolProtocol.php:469 
Stack trace: #0 C:Userskamurjvendorchrome- phpwrenchsrcClient.php(243): WrenchProtocolProtocol- >validateResponseHandshake('HTTP/1.1 403 Fo...', 'oMHZ8u72RCw63G9...')                 
 #1 C:Userskamurjvendorchrome- phpchromesrcCommunicationSocketWrench.php(99): WrenchClient- >connect() #2 C:Userskamurjvendorchrome- phpchromesrcCommunicationConnection.php(186): HeadlessChromiumCommunicationSocketWrench->connect() #3 C:Userskamurjvendorchrome-phpchromesrcBrowserBrowserProcess.php(146): HeadlessChromiumCommunicationConnection->connect() #4 C:Userskamurjvendorchrome-phpchromesrcBrowserFactory.php(81): HeadlessChromiumBrowserBrowserProcess->start('C:\Program File...', Array) #5 C:xampphtdocszmeta.php(266): HeadlessChromiumBrowserFactory->createBrowser(Array) #6 {main} thrown in C:Userskamurjvendorchrome-phpwrenchsrcProtocolProtocol.php on line 469

3

Answers


  1. I had the same issue. Fixed by downgrading google-chrome-stable.

    I was at 111.0.5563.64 and downgraded to 110.0.5481.0 and it works again.

    Login or Signup to reply.
  2. I also just stumbled upon this issue. As @ottenhoff mentioned, downgrading to the earlier version works well.

    For anybody else encountering this issue. Below are instruction on how to set a specific version for deb Ubuntu.

    CHROME_VERSION=110.0.5481.96-1
    wget --no-check-certificate https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_${CHROME_VERSION}_amd64.deb
    dpkg -i google-chrome-stable_${CHROME_VERSION}_amd64.deb || apt -y -f install
    rm google-chrome-stable_${CHROME_VERSION}_amd64.deb;
    

    IF you are runnning this in a docker image use the below:

    ENV CHROME_VERSION=110.0.5481.96-1
    RUN curl -LO https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_${CHROME_VERSION}_amd64.deb
    RUN dpkg -i google-chrome-stable_${CHROME_VERSION}_amd64.deb || apt -y -f install
    RUN rm google-chrome-stable_${CHROME_VERSION}_amd64.deb;
    

    I hope this helps…

    Login or Signup to reply.
  3. You no longer need to downgrade Chrome. This issue has been resolved in chrome-php/chrome v1.8.1

    https://github.com/chrome-php/wrench/issues/11

    I upgraded today and verified it is fixed.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search