berstend / puppeteer-extra

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

[Bug] It seems that 2Captcha moved from Hetzner data center and I'm experiencing Error: connect ETIMEDOUT #719

Open geranuda opened 2 years ago

geranuda commented 2 years ago

Hello and thank you for all your work, it seems that the 2captcha site is experimenting with some issues regarding its server, Because of this, I keep getting this Error: connect ETIMEDOUT and the support site is telling me that I should flush my DNS because in the error appears their previous IP domain. I already flush my DNS and everything but keeps getting me that error is there anything I can do to handle this? Thank you so much in advance!

const puppeteer = require('puppeteer-extra')
puppeteer.use(RecaptchaPlugin({
  provider: {
    id: '2captcha',
    token: 'token' 
  }, 
;(async () => {
  const browser = await puppeteer.launch()
  // ...
  await page.solveRecaptchas()
})()

the console prints:

PuppeteerExtraPluginRecaptcha: An error occured during "getRecaptchaSolutions": {
  _vendor: 'recaptcha',
  provider: '2captcha',
  id: 'lk3zsx5fcwal',
  requestAt: 2022-10-06T18:37:19.425Z,
  error: 'Error: 2captcha error: Error: connect ETIMEDOUT 65.108.194.67:443'
}

Versions puppeteer-extra-plugin-recaptcha 3.6.6

2captcha commented 2 years ago

Hi! Yes, we moved our servers from Hetzner data center and unfortunately the process wasn't 100% smooth. There were minor outage periods during the process caused by DNS update delays, some minor misconfiguration, etc. But everything should be fine unless you had some static records in your hosts file pointing to our IP addresses in Hetzner or your local DNS server still keeps a really old cached entries. We are really sorry for the inconvenience caused. Feel free to contact our support team if you still experience any issues.