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]: Puppeteer throwing error when running non-headless #7902
Comments
I'm also having this issue, with MacOS in Node v15.12.0. I'd love to see a solution as I have a project that can't be headless! |
FYI: there is a (yet unmerged) pull request for it: #7848 Until then, rolling back to v12.0.1 works for me. |
Same error with v12.0.1, macOS Catalina 10.15.7, running with headless: false. Updated to v13.0.1 just now, but as I can see it hasn't been fixed in it yet, based on OP's comment. |
same here, windows, non-headless, v13, start several puppeteer instances at a time, some times this error exists and let my whole Node.js project exit. |
Same here, Windows 10, non-headless, puppeteer v. 13.1.3 UnhandledPromiseRejectionWarning: ProtocolError: Protocol error (Page.createIsolatedWorld): No frame for given id found while calling goto() |
Same issue here with Chrome + Puppeteer 11/12/13 😬 |
Same issue here when running tests in non-headless in Chrome with Puppeteer v12.0.1, node v16.13.0 |
Same here, several days, no solution found |
Same problem here. Also, everytime this happens, it creates 3 zombie chomium processes thats eating up my cpu and ram |
I have currently "fixed" this problem by adding a global error catcher: process.on('uncaughtException', function (err) {
console.log('Caught exception: ' + err);
}); Edit: Use this so that it ignores this specific error only process.on("uncaughtException", function (err) {
if (
err
.toString()
.startsWith("Error: Execution context is not available in detached frame")
)
return;
console.error("Caught exception: " + err);
}); |
Hey I am having difficulty running puppeteer functions . I keep getting this error - TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md
(node:13460) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) I have tried installing all dependencies and all 1000 resolutions to disable sandbox and what not but no luck , i see on this post you guys have reached a step or more ahead of me so i will be really glad if you can help me out with this error resolution. |
@pankhiprasher your questions are not related to this issue mentioned above. |
@lgh06 its still giving in the same error even after i installed all libraries and dependencis |
@pankhiprasher I am on a Ubuntu Server 20.04 LTS and those official troubleshooting dependencies worked for me. |
We're marking this issue as unconfirmed because it has not had recent activity and we weren't able to confirm it yet. It will be closed if no further activity occurs within the next 30 days. |
We are closing this issue. If the issue still persists in the latest version of Puppeteer, please reopen the issue and update the description. We will try our best to accomodate it! |
Bug description
I'm using puppeteer to visit a webpage and view all the network requests that fire but I've found that an error is thrown when running in non-headless mode and I can't figure out the cause of this error. No amount of Googling has turned up an answer so far. Here's the error:
This is a dumbed down sample of my project code that throws this error:
If you change the value of
headless
totrue
in the launch options object that is passed when launching puppeteer then this error goes away and everything runs as expected. For the purposes of this project I can't run in headless mode, so I need to figure out why this error is happening.Any help or direction is appreciated!
Puppeteer version
13.0.1
Node.js version
v16.13.1
npm version
8.1.2
What operating system are you seeing the problem on?
macOS
Relevant log output
No response
The text was updated successfully, but these errors were encountered: