Skip to content

[Bug] puppeteer-extra-plugin-recaptcha causes puppeteer.connect() to hang indefinitely #917

Open
@boemekeld

Description

@boemekeld

Describe the bug
When using the puppeteer-extra-plugin-recaptcha plugin, calling puppeteer.connect() hangs forever and never resolves the promise. In our case, when attempting to connect to a running browser instance via a remote debugging URL (e.g., http://localhost:9222), the connection never completes. Without the recaptcha plugin enabled, the connection works as expected.

Steps to Reproduce

  1. Ensure you have a Chrome instance running with remote debugging enabled on port 9222.
  2. Enable the recaptcha plugin by including it in your puppeteer-extra configuration.
  3. Attempt to connect to the browser using:
    const browser = await puppeteer.connect({ browserURL: 'http://localhost:9222' });
  4. Observe that the promise returned by puppeteer.connect() never resolves, causing the script to hang indefinitely.

Versions:
"puppeteer": "^24.2.1",
"puppeteer-extra": "^3.3.6",
"puppeteer-extra-plugin-recaptcha": "^3.6.8",

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions