Open ejooroo opened 8 months ago
Hey, thanks for using the image!
Can you share more info about how you're using undetected-chromedriver from your local machine? Did you run a container from this image locally or just some script?
I see two possibilities here:
Thank you for your quick response!
I got'it. The issue was due to these options arguments:
options.add_argument('--headless=new')
options.add_argument('--single-process')
With those options enabled, Google blocks access, and if I remove them, I can't get the Lambda function to work.
At the moment, I can't think of what I can do about it.
Hey @ejooroo Sorry for taking a long time, well unfortunately those options are necessary for it to work on Lambda but have you tried experimenting with the other options and seeing if Google allows you login?
Alternatively have you considered doing what you need to do with some other method such as the gmail API? https://developers.google.com/gmail/api/guides
First of all, I want to congratulate and thank you for the great work you've done.
I am using the Docker base image filipmania/undetected-chromedriver-lambda:latest to create an AWS Lambda function. However, I am experiencing an issue when trying to access Gmail using this Lambda function; it seems like access is being blocked, similar to what happens with traditional Selenium.
Interestingly, I can successfully log in to Gmail from my local machine using undetected-chromedriver. I was wondering if you have any idea why this might be happening. Is there any specific configuration I should be aware of when using this image in a Lambda environment?
I appreciate any help or suggestions you can provide.