RobinDev / Selenium-Chrome-HTTP-Private-Proxy

Use proxy with a basic authentication with Chrome and Selenium
https://dev.piedweb.com/
GNU General Public License v2.0
92 stars 30 forks source link

unknown error: failed to wait for extension background page to load: #1

Open fllprbt opened 6 years ago

fllprbt commented 6 years ago

What are you trying to achieve? (Expected behavior)

I am using Selenium with the latest Chrome driver. I want to use a proxy with authorization and considering that this behavior is not supported I am following your guide: https://github.com/RobinDev/Selenium-Chrome-HTTP-Private-Proxy

What do you get instead? (Actual behavior)

Generally, it works. After hours of work at some point I am getting the following fatal error. Please note, that I am making many plugins for different proxies without any issue.

PHP Fatal error:  Uncaught Facebook\WebDriver\Exception\UnknownServerException: unknown error: failed to wait for extension background page to load: chrome-extension://nknfhemedcefohicgiceepeoabnocgpc/_generated_background_page.html
from timeout: Timed out receiving message from renderer: 10.000
  (Driver info: chromedriver=2.33.506092 (733a02544d189eeb751fe0d7ddca79a0ee28cce4),platform=Linux 4.9.0-3-amd64 x86_64) (WARNING: The server did not provide any stacktrace information)

How could the issue be reproduced? (Steps to reproduce)

The code is pretty much the same with the "how to use it" from Selenium Chrome HTTP Private Proxy and I cannot think of any way to reproduce.

I am not sure if its related to your code, (probably not) but I 'd like to hear your input.

sionking commented 5 years ago

I have this 2 ! when the connection to the proxy is slow: ERROR [2018-10-08 21:34:58] [] Message: unknown error: failed to wait for extension background page to load: chrome-extension: //phghgkeobbhmhkcalckndgcebdccffbf/_generated_background_page.html timeoit

s-belichenko commented 5 years ago

And I'm too:

unknown error: failed to wait for extension background page to load: chrome-extension://bfjfnjfdlijhaidfmabgcdlcghnmcgkl/_generated_background_page.html
from unknown error: page could not be found: chrome-extension://bfjfnjfdlijhaidfmabgcdlcghnmcgkl/_generated_background_page.html
  (Driver info: chromedriver=2.43.600233 (523efee95e3d68b8719b3a1c83051aa63aa6b10d),platform=Linux 3.10.0-862.14.4.el7.x86_64 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 10.39 seconds
Build info: version: '3.14.0', revision: 'aacccce0', time: '2018-08-02T20:13:22.693Z'
System info: host: 'humanoid', ip: '127.0.0.1', os.name: 'Linux', os.arch: 'amd64', os.version: '3.10.0-862.14.4.el7.x86_64', java.version: '1.8.0_191'
Driver info: driver.version: unknown
alejandrohdo commented 5 years ago

I also have the same problem, could someone have solved ?, Thanks

Message: unknown error: failed to wait for extension background page to load: chrome-extension://hgifibfnlmmjjglblhlbmpknpfndibjh/_generated_background_page.html from unknown error: page could not be found: chrome-extension://hgifibfnlmmjjglblhlbmpknpfndibjh/_generated_background_page.html (Driver info: chromedriver=72.0.3626.69 (3c16f8a135abc0d4da2dff33804db79b849a7c38),platform=Mac OS X 10.14.2 x86_64)

ani07 commented 4 years ago

Any solution for this @RobinDev @henices This works perfectly for me but when running chromedriver in headless mode I am getting failed to wait for extension background page to load: chrome-extension://hgifibfnlmmjjglblhlbmpknpfndibjh/_generated_background_page.html.

hosseinhashemidev commented 4 years ago

This works perfectly for me too but again when running chromedriver in headless mode I am getting failed to wait for extension background page to load: chrome-extension://hgifibfnlmmjjglblhlbmpknpfndibjh/_generated_background_page.html.

Yop-La commented 4 years ago

Hello @RobinDev ,

I am having the same issue:

Any solution for this @RobinDev @henices This works perfectly for me but when running chromedriver in headless mode I am getting failed to wait for extension background page to load: chrome-extension://hgifibfnlmmjjglblhlbmpknpfndibjh/_generated_background_page.html.

hiren-addweb commented 3 years ago

Hello @RobinDev , Same issue The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.

araswathy commented 1 year ago

I am also facing same issue any update on this issue

darkotodoric commented 1 year ago

Use "--headless=new" option, instead of "--headless". Then will work.

https://developer.chrome.com/articles/new-headless/