rehanhaider / selenium-aws-chrome-extension

Run Chrome with extension on Lambda using Selenium
GNU General Public License v3.0
3 stars 0 forks source link

"Message: chrome not reachable" #1

Open georgeamine opened 2 years ago

georgeamine commented 2 years ago

Steps I took:

  1. I pulled the repo
  2. Update function MemorySize to 1024 in the template.yml because it would't work without it
  3. Ran sam build
  4. Ran sam local invoke

After some time, I get hit with this error...

{"errorMessage": "Message: chrome not reachable\nStacktrace:\n#0 0x004000a5fee3 \n#1 0x00400052d49f \n#2 0x00400051c169 \n#3 0x004000553d1f \n#4 0x00400054fc07 \n#5 0x00400054c46f \n#6 0x004000586f45 \n#7 0x004000581163 \n#8 0x004000556bfc \n#9 0x004000557c05 \n#10 0x004000a91baa \n#11 0x004000aa7651 \n#12 0x004000a92b05 \n#13 0x004000aa8a68 \n#14 0x004000a8705f \n#15 0x004000ac3818 \n#16 0x004000ac3998 \n#17 0x004000adeeed \n#18 0x004002c5bfa3 \n", "errorType": "WebDriverException", "requestId": "9668132e-086e-475c-bcfe-edc9f5676b12", "stackTrace": [" File \"/function/app.py\", line 37, in handler\n browser = webdriver.Chrome(service=webdriver_service, options=chrome_options)\n", " File \"/usr/local/lib/python3.10/site-packages/selenium/webdriver/chrome/webdriver.py\", line 70, in init\n super(WebDriver, self).init(DesiredCapabilities.CHROME['browserName'], \"goog\",\n", " File \"/usr/local/lib/python3.10/site-packages/selenium/webdriver/chromium/webdriver.py\", line 93, in init\n RemoteWebDriver.init(\n", " File \"/usr/local/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py\", line 268, in init\n self.start_session(capabilities, browser_profile)\n", " File \"/usr/local/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py\", line 359, in start_session\n response = self.execute(Command.NEW_SESSION, parameters)\n", " File \"/usr/local/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py\", line 424, in execute\n self.error_handler.check_response(response)\n", " File \"/usr/local/lib/python3.10/site-packages/selenium/webdriver/remote/errorhandler.py\", line 247, in check_response\n raise exception_class(message, screen, stacktrace)\n"]}%

Running on Macbook Pro M1 with Docker Desktop.

rehanhaider commented 2 years ago

OK, will take a look again. My guess is I messed up the version that was put in here.

georgeamine commented 2 years ago

Thanks Rehan!

Looks like you are using the latest version of both chrome and chromedriver? Is that not supposed to be the case?

rehanhaider commented 2 years ago

Version of code not chrome.

georgeamine commented 2 years ago

Ah I see.

georgeamine commented 2 years ago

Have you found the correct version yet Rehan?

rehanhaider commented 2 years ago

Uploaded a working version

DiMiTriFrog commented 2 years ago

Still isnt working.. It's a pitty Why now isnt working??

rehanhaider commented 2 years ago

Still isnt working.. It's a pitty Why now isnt working??

Can you provide more details of the config & error message you got?