-
-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG]: Target closed when doing a page.click with Pupeeteer-core #229
Comments
Have you been able to find a solution? |
The only recommendation I can give is to increase memory for these types of errors. |
Apparently it is related to the fact that the Node 18.X runtime went from 18.26 to 18.28 and the latter breaks something in the library (at least in my case it worked perfectly until AWS started the function with 18.26). Unfortunately you cannot choose the minor version in the configuration of each lambda. |
I got it fixed by upgrading the version from
To
|
@simonjsp @satyam-appscoop You made my day yesterday! Our pdf generation on AWS lambda using |
Environment
chromium
Version: 121.0.0puppeteer
/puppeteer-core
Version: 22.0.0Expected Behavior
I have some E2E tests running with puppeteer 22.0.0 alongside with @sparticuz/chromium 121.0.0. When I run them locally on my M2 Mac, it works as expected and everything goes through. But when they are ran in an AWS Lambda, there is a sort of crash of the browser when trying to click on a element. It results in
Protocol error (Input.dispatchMouseEvent): Target closed Protocol error (Input.dispatchMouseEvent): Target closed
.I have also tried to wait for the element before clicking to ensure it exist and it does.
The weird thing is that if I trigger a reload of the page before doing the click, then it works as expected. This causes quite some issue as the local and remote env are not behaving similarly.
Current Behavior
On the 3rd click event, regardless what element I try to target, the browser seems to be crashing.
Steps to Reproduce
The text was updated successfully, but these errors were encountered: