-
Notifications
You must be signed in to change notification settings - Fork 300
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
new error after update #288
Comments
I get this
|
|
Are you using the browser target Otherwise please try to provide a minimal example that reproduces this issue. |
Ciao! How are you? I was abble to fix it, but it is weird that I have to extract the Isn't there are prettier solution then run = execFile('/opt/google/chrome/chrome', [`--remote-debugging-port=${port}`, '--headless', '--disable-gpu', '--enable-logging', /** '--v=1', **/ '--log-level=5', `--user-data-dir=${cacheDir}`, `--user-agent="${agent}"`, 'about:blank'], (err, stdout, stderr) => {
if (err) {
mainRejecter(err)
}
});
run.stdout.on('data', (data) => {
console.debug(consolePrefix, 'stdout', data);
});
run.stderr.on('data', (data) => {
data = data.trim();
const devToolsUrlStartString = `DevTools listening on `;
if (data.includes(devToolsUrlStartString )) {
chromeTarget = data.substr(devToolsUrlStartString .length)
} else if (data.includes('Address already in use')) {
mainRejecter(new Error(data));
} else {
console.warn(consolePrefix, 'stdeerr', data);
}
}); As you can see I can find in the const client = await CDP({
port: port,
// target: `ws://localhost:${port}/devtools/browser`
target: chromeTarget,
}); |
Sure it is weird... I never said that you have to parse stderr, did you even read this?
In particular: const {webSocketDebuggerUrl} = await CDP.Version({port}); |
ahh, thanks! |
Is Chrome running in a container? YES / NO
Ciao!
How are you?
I just updated I get this error, is there a change?
The text was updated successfully, but these errors were encountered: