Skip to content
This repository has been archived by the owner on Oct 18, 2023. It is now read-only.

Puppeteer 12/13 / node 16 issue #2411

Closed
sublimator opened this issue Nov 29, 2021 · 3 comments
Closed

Puppeteer 12/13 / node 16 issue #2411

sublimator opened this issue Nov 29, 2021 · 3 comments

Comments

@sublimator
Copy link
Member

@sublimator sublimator changed the title Puppeteer 12 / node 16 issue Puppeteer 12/13 / node 16 issue Dec 22, 2021
@sublimator
Copy link
Member Author

sublimator commented Jan 7, 2022

This only happens for the youtube page, which for some reason has an about:blank empty iframe in it.
Can reproduce the bug with simplified script so it seems a regression in the way frames are handled
It seems the second time a function bound with page.exposeFunction is called ( even in the main frame?? ) the error is thrown:
Error: Execution context is not available in detached frame "about:blank" (are you trying to evaluate?)

Burned hours of life but not sure how to work around it

@sublimator
Copy link
Member Author

Seems like this was fixed in the latest version of puppeteer:
puppeteer/puppeteer#7814

@sublimator
Copy link
Member Author

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant