puppeteer-extra-plugin-recaptcha usually "stops working" for one of four reasons: the 2captcha provider is not configured or has no balance, the widget is reCAPTCHA v3 and the plugin filters it out by default (solveScoreBased: false), the site uses reCAPTCHA Enterprise and the plugin does not send the Enterprise flag unless you ask, or the widget is inside an iframe that page.solveRecaptchas() does not look into. Because the plugin never throws by default, all of these look the same: an empty solutions array and a form that does not submit.
Turn on throwOnError and debug logging, read the filtered array, and match the cause below. For v2 checkboxes the plugin with a funded 2captcha account still works; for score-based v3 and Enterprise, a v3 solver API is more reliable.
Quick answer: match your symptom to the fix
These are the messages and results people paste into search when page.solveRecaptchas() stops working. Find yours:
- Error: Please provide a solution provider to the plugin.
- No provider was configured, the token is empty, or it is still the README placeholder XXXXXXX. Pass provider: { id: '2captcha', token: '<your key>' }, or your own provider function as provider.fn.
- Cannot find builtin provider with id '...'
- The provider id is wrong. 2captcha is the only built-in provider. Use id: '2captcha' exactly, or supply provider.fn for any other service.
- solutions: [ { error: "2captcha error: ERROR_ZERO_BALANCE" } ]
- 2Captcha says the account has no funds. The plugin does not throw by default, so this only shows up in the result object. Top up the 2Captcha account, and set throwOnError: true so the next failure is not silent.
- 2captcha error: ERROR_WRONG_USER_KEY / ERROR_KEY_DOES_NOT_EXIST
- The key has the wrong format (2Captcha keys are 32 characters) or does not exist. Copy the key again from the 2Captcha dashboard. Too many wrong-key requests get your IP banned for 5 minutes (IP_BANNED).
- captchas: [], solutions: [], filtered: [ { filteredReason: "solveScoreBased" } ]
- The plugin found a reCAPTCHA v3 (score-based) widget and skipped it, because solveScoreBased defaults to false. Set solveScoreBased: true. Then read the v3 section below: even when it is solved, the request the plugin sends is not a full v3 task.
- filteredReason: "solveInactiveChallenges"
- An invisible v2 widget with no open challenge popup was skipped. Trigger the action that opens the challenge, or set solveInactiveChallenges: true.
- captchas: [] and nothing filtered, but a widget is on screen
- The widget lives inside an iframe, or the plugin ran before it rendered. Loop over page.mainFrame().childFrames() and call frame.solveRecaptchas(); wait for iframe[src*="recaptcha/"] first.
- TypeError: page.solveRecaptchas is not a function
- You are using the pre-existing about:blank tab, which the plugin never hooked. Use browser.newPage(), or call recaptcha.onPageCreated(page) on existing pages as the README shows.
- Token accepted by the page, form still rejected (v3 score too low)
- The site's backend checked the score, action or hostname and refused it. A v3 token has to be produced for the right action, within two minutes, from a trusted environment. See the v3 section.
Plugin version, options and error strings checked against npm, the README and the plugin source on GitHub on 2026-12-01. 2Captcha error codes are quoted from its API documentation. Sources are listed at the end of the article.
What the plugin supports, according to its README
The README describes the plugin as a puppeteer-extra and playwright-extra plugin "to solve reCAPTCHAs and hCaptchas automatically". It states that, technically, it supports reCAPTCHA v2, reCAPTCHA v3, invisible reCAPTCHA, hCaptcha and invisible hCaptcha, and that ordinary image captchas are not supported. reCAPTCHA Enterprise is not mentioned anywhere in the README.
The latest version on npm is 3.6.8, published on 1 March 2023. There has been no release since then, even though the README still answers "Is this production ready?" with "Yes, the plugin is actively maintained". The plugin solves nothing itself: it finds the widgets, sends their site key and settings to a provider, and writes the returned token back into the page.
- Built-in provider: 2captcha only ("currently the only builtin solution provider"). Any other service needs your own provider function.
- Default behaviour: only "active" captchas are solved, meaning a visible checkbox iframe or an open challenge popup.
- Options: visualFeedback (default true), throwOnError (default false), solveInViewportOnly (default false), solveScoreBased (default false), solveInactiveChallenges (default false).
- Iframes: not searched by default. The README tells you to call frame.solveRecaptchas() on each child frame.
Fix 1: check the provider configuration and the 2captcha account
The plugin refuses to run without a provider. If provider is missing, has no token, or the token is still the literal placeholder XXXXXXX from the README, it throws "Please provide a solution provider to the plugin." If the id is not one it knows, you get "Cannot find builtin provider with id '...'".
Once the provider is set, errors come from 2Captcha itself. The plugin prefixes them, so a solution entry looks like { error: "2captcha error: ERROR_ZERO_BALANCE" }. The 2Captcha API documentation explains each code:
- ERROR_ZERO_BALANCE: "You don't have funds on your account." The README also warns that you need to add funds before the plugin can work.
- ERROR_WRONG_USER_KEY: the key is in the wrong format; it should contain 32 characters. ERROR_KEY_DOES_NOT_EXIST: the key does not exist.
- IP_BANNED: too many requests with wrong keys; 2Captcha lifts the ban automatically after 5 minutes.
- ERROR_CAPTCHA_UNSOLVABLE: three workers could not solve it, or there was no answer within 90 seconds (300 seconds for reCAPTCHA v2). 2Captcha says it does not charge for these, and you can retry.
- ERROR_BAD_TOKEN_OR_PAGEURL: the site key and page URL do not belong together, often because reCAPTCHA is loaded inside an iframe on another domain or subdomain.
Fix 2: stop errors from being silent
The README is explicit: "By default the plugin will never throw, but return any errors silently in the { error } property of the result object." A script that only awaits page.solveRecaptchas() and then clicks submit will keep failing without a single log line. Pass throwOnError: true, or destructure the result and log captchas, filtered, solutions, solved and error on every call.
For more detail, run the script with DEBUG=puppeteer-extra,puppeteer-extra-plugin:* node myscript.js to see which widgets were detected, which options filtered them out and what the provider answered.
// recaptcha.mjs (puppeteer-extra 3.3.6 + puppeteer-extra-plugin-recaptcha 3.6.8)
import puppeteer from 'puppeteer-extra';
import RecaptchaPlugin from 'puppeteer-extra-plugin-recaptcha';
puppeteer.use(
RecaptchaPlugin({
provider: {
id: '2captcha', // the only built-in provider
token: process.env.TWOCAPTCHA_KEY, // a 32-character 2captcha API key
opts: { useEnterpriseFlag: true }, // send enterprise=1 for Enterprise widgets
},
throwOnError: true, // default false: errors are returned, never thrown
solveScoreBased: true, // default false: reCAPTCHA v3 is filtered out
solveInactiveChallenges: true, // invisible widgets with no open challenge
visualFeedback: true,
})
);
const browser = await puppeteer.launch({ headless: false });
const page = await browser.newPage(); // not the pre-existing about:blank tab
await page.goto('https://your-site.example.com/login');
await page.waitForSelector('iframe[src*="recaptcha/"]');
const { captchas, filtered, solutions, solved, error } = await page.solveRecaptchas();
console.log({ found: captchas.length, filtered, solutions, solved, error });
// Widgets inside iframes are not solved from the page; loop over the frames
for (const frame of page.mainFrame().childFrames()) {
await frame.solveRecaptchas();
}Why reCAPTCHA v3 returns no solutions, or a token that does not pass
reCAPTCHA v3 has no checkbox and no challenge. It returns a score between 0.0 and 1.0, and the site's backend decides what to do with it. The plugin classifies such widgets as type "score" and, because solveScoreBased defaults to false, moves them into the filtered array. That is exactly what issue #919 (opened March 2025, still open) shows: captchas: [], solutions: [], error: null, and the v3 widget listed under filtered with filteredReason: 'solveScoreBased'.
Setting solveScoreBased: true makes the plugin send the widget to 2Captcha, but the request is not a complete v3 task. In the plugin source (provider/2captcha.ts), the call uses method=userrecaptcha with the site key, page URL and the action when one is found, and does not add version=v3 or min_score. The 2Captcha API documentation lists version=v3 as required for reCAPTCHA v3 and min_score as the score you need (default 0.4). There is also a structural limit, pointed out in the same issue: many sites call grecaptcha.execute() from their own code at submit time and send the token in an XHR body, so a token written into a hidden field may never reach the backend.
Even a correct token can fail: Google says tokens expire after two minutes, can be verified only once, and that the backend should check the action name. In issue #76 a user got scores of 0.1 to 0.3 with the stealth plugin; the maintainer first asked whether the IP was datacenter or residential.
reCAPTCHA Enterprise: detected, but the flag is off by default
The plugin does recognise Enterprise widgets: it looks for iframes whose URL contains /recaptcha/enterprise/ and marks them isEnterprise. But the 2captcha provider only sends enterprise=1 when its useEnterpriseFlag option is true, and the default is false, with a comment in the source that it "seems to make solving chance worse". 2Captcha documents enterprise=1 as the parameter for Enterprise.
To turn it on, pass provider: { id: '2captcha', token, opts: { useEnterpriseFlag: true } }. If the Enterprise widget is score-based, you also need solveScoreBased: true, and the v3 limitations above still apply.
Iframes, pre-existing tabs and widgets that load late
- Widgets in iframes: the README says the plugin only solves reCAPTCHAs on the immediate page. Loop over page.mainFrame().childFrames() and call frame.solveRecaptchas() on each one.
- Cross-origin iframes: the README suggests launching Chrome with --disable-features=IsolateOrigins,site-per-process,SitePerProcess so Puppeteer can reach them.
- page.solveRecaptchas is not a function: you are reusing the about:blank tab that existed before the plugin hooked in. Create pages with browser.newPage(), or run recaptcha.onPageCreated(page) on existing ones as in the README.
- Slow pages: wait for the widget before solving, with await page.waitForSelector('iframe[src*="recaptcha/"]').
- Two widgets, one found: issue #679 (open since July 2022) reports findRecaptchas detecting only one of two reCAPTCHAs. Compare captchas.length with the page.
- TypeError [ERR_INVALID_PROTOCOL]: Protocol "https:" not supported: a 2021 bug around 3.3.6 (issue #452), fixed in 3.3.7. Upgrade to 3.6.8.
- Proxy for the solver: set 2CAPTCHA_PROXY_TYPE and 2CAPTCHA_PROXY_ADDRESS if you want 2Captcha to solve from a specific IP.
When to switch to a reCAPTCHA v3 solver API
Keep the plugin for reCAPTCHA v2 checkboxes and hCaptcha: it was built for those and works while the provider is funded. Switch when the widget is score-based (v3 or Enterprise v3): you need a token minted for the right site key, action and domain, and you control the submission yourself.
NSLSolver handles exactly that case and nothing broader: reCAPTCHA v3 and Enterprise, not reCAPTCHA v2, hCaptcha or image captchas. POST type "recaptchav3" with site_key, url, action and a proxy (required) to https://api.nslsolver.com/solve, add "enterprise": true when the page loads enterprise.js, and read token from the response. It takes about 13 seconds on average, costs $1.00 per 1,000 solves, and only successful solves are billed. Sign up with Google, Gmail or Proton for $0.10 of free credit (about 125 Turnstile solves), no card required. See the reCAPTCHA v3 solver API page for the full request format and pricing for all services.
No solver can promise a particular score, and the backend still applies its own threshold. Only automate sites you own or are authorised to access.
// v3-token.mjs (Node 18+, built-in fetch)
// reCAPTCHA v3 / Enterprise only. NSLSolver does not solve reCAPTCHA v2 or hCaptcha.
const res = await fetch('https://api.nslsolver.com/solve', {
method: 'POST',
headers: { 'X-API-Key': process.env.NSLSOLVER_API_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
type: 'recaptchav3',
site_key: '6Lc...', // the render= / sitekey value
url: 'https://your-site.example.com/login', // page where reCAPTCHA runs
action: 'login', // same action the page passes to execute()
// enterprise: true, // only if the page loads enterprise.js
proxy: 'http://user:pass@proxy.example.com:8080',
}),
});
const data = await res.json();
if (!res.ok || !data.success) throw new Error(res.status + ' ' + JSON.stringify(data));
// `page` is your Puppeteer page. One token per submission, used within two minutes. Send it in the field
// the site's own frontend uses (check the request in the Network tab).
await page.evaluate((token) => {
const field = document.querySelector('[name="g-recaptcha-response"]');
if (field) field.value = token;
}, data.token);Related guides
- reCAPTCHA v3 and Enterprise solver API: request format, Enterprise flag and pricing.
- NSLSolver pricing: pay per successful solve, reCAPTCHA v3 at $1.00 per 1,000.
- reCAPTCHA v3 low score and siteverify errors: what 0.1 and 0.3 mean and how the backend checks tokens.
- Solve reCAPTCHA v3 and Enterprise in Python: finding the site key and action, with full code.
- Puppeteer stealth not working: why the stealth plugin still gets detected.
- 2Captcha not working: the full list of 2Captcha error codes and fixes.
Sources (checked 2026-12-01)
- npm: puppeteer-extra-plugin-recaptcha (3.6.8, 2023-03-01)
- GitHub: puppeteer-extra-plugin-recaptcha README
- GitHub: plugin source, index.ts (filters and provider errors)
- GitHub: plugin source, provider/2captcha.ts (useEnterpriseFlag, action)
- GitHub issue #919: invisible reCAPTCHA v3 not being solved
- GitHub issue #76: reCAPTCHA v3 score 0.1 with the stealth plugin
- GitHub issue #679: findRecaptchas finds only one of two reCAPTCHAs
- GitHub issue #452: ERR_INVALID_PROTOCOL, fixed in 3.3.7
- 2Captcha API v1 docs: reCAPTCHA v3 parameters and error codes
- Google: reCAPTCHA v3 documentation
- Google: verifying the user's response (siteverify)