I am trying to install / run Head-Less Chrome in AWS Lambda but getting the following Error when I test it through Lambda.
"errorMessage": "Message: Service /tmp/bin/chromedriver unexpectedly exited. Status code was: 127\n", "errorType": "WebDriverException"
I am using ChromeDriver 83.0.4103.39 for Linux.
Steps performed in Python:
- Created /tmp/bin in Lambda
- Copy Chrome Driver to /tmp/bin
- Changed the permission to 0777
Python Code:
Throwing error on the following line -
driver = webdriver.Chrome(chrome_options=chrome_options, executable_path= "/tmp/bin/" + chrome_linux_driver)
Code is working fine when I am running under windows with same windows Chrome driver.
Any help is really appreciated.