Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Bug] puppeteer-extra-plugin-stealth cannot bypass meet.google.com protection with Chrome 122 #898

Open
MaximKalinin opened this issue Jun 20, 2024 · 1 comment
Labels
issue: bug report A bug has been reported needs triage

Comments

@MaximKalinin
Copy link

MaximKalinin commented Jun 20, 2024

Describe the bug

puppeteer-extra-plugin-stealth package works on https://meet.google.com website with puppeteer version 22.1.0 (Chrome for testing version 121.0.6167.85). However, when using puppeteer 22.2.0 (Chrome for testing version 122.0.6261.57), the website detects automation tool usage and blocks the access. Looks like either some old tricks stopped working or some new ways of detection were added.

Code Snippet
To reproduce the issue, save the following code into test.js file and run node test.js, while having the following dependencies in package.json:

    "puppeteer": "22.2.0",
    "puppeteer-extra": "3.3.6",
    "puppeteer-extra-plugin-stealth": "2.11.2",
(async () => {
  const puppeteer = require('puppeteer-extra');
  const StealthPlugin = require('puppeteer-extra-plugin-stealth');
  puppeteer.use(StealthPlugin());

  const browser = await puppeteer.launch({
    headless: false,
  });

  const page = await browser.newPage({
    storageState: { cookies: [], origins: [] },
    permissions: ['microphone', 'camera'],
  });
  await page.goto('https://meet.google.com/aaa-aaaa-aaa');
})();

To verify that it works with older versions of Chrome, just replace puppeteer version in package.json:

-   "puppeteer": "22.2.0",
+   "puppeteer": "22.1.0",
    "puppeteer-extra": "3.3.6",
    "puppeteer-extra-plugin-stealth": "2.11.2",

Versions

  System:
    OS: macOS 14.5
    CPU: (8) arm64 Apple M1 Pro
    Memory: 94.69 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.10.0 - ~/.nvm/versions/node/v20.10.0/bin/node
    npm: 10.2.3 - ~/.nvm/versions/node/v20.10.0/bin/npm
  npmPackages:
    playwright-extra: 4.3.6 => 4.3.6 
    puppeteer: 22.2.0 => 22.2.0 
    puppeteer-extra: 3.3.6 => 3.3.6 
    puppeteer-extra-plugin-stealth: 2.11.2 => 2.11.2 

@MaximKalinin MaximKalinin added issue: bug report A bug has been reported needs triage labels Jun 20, 2024
@Slyracoon23
Copy link

This is a issue I am experiencing. Are there any workarounds?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
issue: bug report A bug has been reported needs triage
Projects
None yet
Development

No branches or pull requests

2 participants