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
Protocol error - Target closed: puppeteer stopped working. #7455
Comments
The same for me. And many more, see: #6610 (comment) |
We are seeing this same issue on one of our dev's boxes. The exact same setup works fine on every other device we have including on ubuntu docker on circle ci. So this is specifically a Arch linux problem from what we can tell. None of the other bugs that I find seem to be relevant since the OS isn't quite the same. It would be helpful if someone had some setup instruction for Arch linux, as we can't exactly figure out if we are missing some setup step or something. if we enable dumpio on the chrome launch we get this
|
I fixed this downgrading to 7.0.1. |
Exact same issue here with Puppeteer v10.2.0, v9.1.1, v8.0.0 & Node v16.9.1, v14.17.4. Technically, it's not a
All Chromium dependencies installed, using Brave as a daily browser without issues. |
Same issue on Fedora 35 (node 16). Same solution as @MunyuShizumi |
Same issue CircleCI Node 16.13.0 (cimg/node:16.13.0). Downloaded Chromium rev 901912
Unhandled rejection
ProtocolError: Protocol error (Target.setDiscoverTargets): Target closed.
at /home/circleci/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.js:75:24
at new Promise (<anonymous>)
at Connection.send (/home/circleci/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.js:71:16)
at Function.create (/home/circleci/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Browser.js:121:26)
at ChromeLauncher.launch (/home/circleci/app/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Launcher.js:117:56)
at async Browser.create (/home/circleci/app/dist/lib/browser/Browser.js:50:25)
at async TasksManager.launch (/home/circleci/app/dist/lib/TasksManager.js:54:9) {
originalMessage: undefined
} |
This is fixed for me in puppeteer >= 12.0.0. |
I'm using puppeteer@13.0.1 with no problems now. |
puppeteer v10.x is broken in Arch Linux[0], so upgrade to the most recent version to fix it. [0]: puppeteer/puppeteer#7455
puppeteer v10.x is broken on Arch Linux[0], so upgrade to the most recent version to fix it. [0]: puppeteer/puppeteer#7455
I'm closing this issue for now since the problem seems to be fixed in the latest versions. |
Steps to reproduce
Tell us about your environment:
What steps will reproduce the problem?
Please include code that reproduces the issue.
mkdir -p /tmp/test-p && cd /tmp/test-p
yarn init
(default for all options)yarn add puppeteer
vim ./index.js
then copy/paste/save the first code example in the readme:node ./index.js
What is the expected result?
No error and a screenshot.
What happens instead?
Additional information
I've been using puppeteer for months without any issue. Earlier, I tried to run one of my scripts but I got the error above. I tried to narrow the problem and found out that it still happens even with a fresh install and a simple code.
Whats the root cause of this error ? Am i doing something wrong ? Needless to say that i didn't find any answer in google/SO/etc.
Thanks in advance!
The text was updated successfully, but these errors were encountered: