berstend / puppeteer-extra

💯 Teach puppeteer new tricks through plugins.
https://extra.community
MIT License
6.23k stars 731 forks source link

[Bug] await page.solveRecaptchas() stopped working a couple of weeks ago with TimeoutError: Waiting failed: 10000ms exceeded #895

Open ivictbor opened 2 weeks ago

ivictbor commented 2 weeks ago

I was using puppeteer-extra-plugin-recaptcha with 2captcha for a several monthes, and some time ago it stopped working, I did not make any changes in project. Now I enabled logs and saw next:

puppeteer-extra-plugin:recaptcha onPageCreated about:blank +0ms
🔑 doing login

  puppeteer-extra-plugin:recaptcha solveRecaptchas +0ms
  puppeteer-extra-plugin:recaptcha findRecaptchas +0ms
  puppeteer-extra-plugin:recaptcha hasRecaptchaScriptTag true +0ms
  puppeteer-extra-plugin:recaptcha waitForRecaptchaClient - start 2024-06-13T09:02:20.516Z +0ms
  puppeteer-extra-plugin:recaptcha TimeoutError: Waiting failed: 10000ms exceeded
  puppeteer-extra-plugin:recaptcha     at new WaitTask (/home/ivan/code/xx/xxx/node_modules/puppeteer-core/lib/cjs/puppeteer/common/WaitTask.js:50:34)
  puppeteer-extra-plugin:recaptcha     at IsolatedWorld.waitForFunction (/home/ivan/code/xxx/yyyy/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Realm.js:25:26)
  puppeteer-extra-plugin:recaptcha     at CdpFrame.waitForFunction (/home/ivan/code/xxx/yyyy/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Frame.js:504:43)
  puppeteer-extra-plugin:recaptcha     at CdpFrame.<anonymous> (/home/ivan/code/xxx/yyyy/node_modules/puppeteer-core/lib/cjs/puppeteer/util/decorators.js:98:27)
  puppeteer-extra-plugin:recaptcha     at CdpPage.waitForFunction (/home/ivan/code/xxx/yyyy/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Page.js:1375:37)
  puppeteer-extra-plugin:recaptcha     at PuppeteerExtraPluginRecaptcha.findRecaptchas (/home/ivan/code/xxx/yyyy/node_modules/puppeteer-extra-plugin-recaptcha/dist/index.cjs.js:983:18)
  puppeteer-extra-plugin:recaptcha     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
  puppeteer-extra-plugin:recaptcha     at async PuppeteerExtraPluginRecaptcha.solveRecaptchas (/home/ivan/code/xxx/yyyy/node_modules/puppeteer-extra-plugin-recaptcha/dist/index.cjs.js:1092:66)
  puppeteer-extra-plugin:recaptcha     at async holder.doLogin (/home/ivan/code/xxx/yyyy/index.js:134:5)
  puppeteer-extra-plugin:recaptcha     at async init (/home/ivan/code/xxx/yyyy/index.js:278:7) +0ms
  puppeteer-extra-plugin:recaptcha waitForRecaptchaClient - end 2024-06-13T09:02:30.520Z +0ms
  puppeteer-extra-plugin:recaptcha hasHcaptchaScriptTag false +0ms
  puppeteer-extra-plugin:recaptcha _generateContentScript recaptcha findRecaptchas undefined +0ms
  puppeteer-extra-plugin:recaptcha:cs Intialized {"url":"https://www.xxx.com//account-security/login","opts":{"visualFeedback":true,"debugBinding":"___pepr_cs"}} +0ms
  puppeteer-extra-plugin:recaptcha:cs findRecaptchas {"url":"https://www.xxx.com//account-security/login","hasClients":false} +2ms
  puppeteer-extra-plugin:recaptcha _generateContentScript hcaptcha findRecaptchas undefined +0ms
  puppeteer-extra-plugin:recaptcha Filter results: 0 of 0 captchas filtered from results. +0ms
  puppeteer-extra-plugin:recaptcha findRecaptchas { captchas: [], filtered: [], error: null } +0ms
  puppeteer-extra-plugin:recaptcha solveRecaptchas { captchas: [], filtered: [], solutions: [], solved: [], error: null } +0ms
  puppeteer-extra-plugin:recaptcha solveRecaptchas +0ms
  puppeteer-extra-plugin:recaptcha findRecaptchas +0ms
  puppeteer-extra-plugin:recaptcha hasRecaptchaScriptTag false +0ms
  puppeteer-extra-plugin:recaptcha hasHcaptchaScriptTag false +0ms

On a screenshot I see cloudflare captcha

LessThanGreaterThan commented 1 week ago

so if i understand this correctly, you see on the page cloudflare turnstile, and are confused why recaptcha doesn't work ?